Skip to content

Commit

Permalink
Finished game
Browse files Browse the repository at this point in the history
  • Loading branch information
familycomicsstudios committed Nov 7, 2022
1 parent f255854 commit c122b0a
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 17 deletions.
8 changes: 8 additions & 0 deletions GAMEINFO.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ news

hint

debug

game

# Items

take
Expand Down Expand Up @@ -76,6 +80,10 @@ get

grab

kill

slay

# Magic

xyzzy
Expand Down
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Readme
Welcome to the Colossal Cave Adventure unnamed sequel!
Welcome to the Colossal Cave Adventure sequel! This is a fan-made sequel to the famous game "Colossal Cave Adventure" created in Python.

To play the game, type in one or two word commands in the terminal prompt. The game will then interpert these commands to make your in-game character do things.

Some sample commands you must know:

```
north
east
south
west
inventory
look
info
help
hint
take
drop
debug
game
```

To fork this game and make a mod, please press the button below.
[![Run on Repl.it](https://replit.com/badge/github/familycomicsstudios/NewCaveAdventure)](https://replit.com/new/github/familycomicsstudios/NewCaveAdventure)
49 changes: 33 additions & 16 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Colossal Cave Adventure Sequel
v0.6
v1.0.0 Working
Created by TheMadPunter
© 2022
Expand All @@ -11,11 +11,11 @@
"""
import sys
#-------------------METADATA----------------#
version = "v0.6.0"
version = "v1.0.0"
branch_creator = "TheMadPunter"
python_version = sys.version
mods = ["Vanilla CCA Engine by Themadpunter"]
mod_versions = ["v1.0 Completed"]
mod_versions = ["v1.0.0 Completed"]
modpack_name = "Vanilla CCA Engine"
acknowledgements = ["Willie Crowther and Don Woods for Original Game"]
other = """"""
Expand Down Expand Up @@ -59,10 +59,10 @@ def createList(r1, r2):
Scale (25)
Platinum Sword (50)
OTHER STUFF
Get well in (25)
Get well in (26)
Don't die (30)
Get Excalibur (25)
SCORE: 196
SCORE: 267
"""
#Other
vmach = 0
Expand Down Expand Up @@ -233,10 +233,22 @@ def createList(r1, r2):
0)


### Need to pre reference
def rscore():
return (ts + ss + wis + ots)


#funcs
def start_room(room):
global room_no, wis, invent, hs, vmach, tookCoins
global isKey, ss, ots
scores = rscore()
if scores + hs >= 267:
cprint(
"Congratulations, adventurer! Your adventure is over! You have collected everything in the game.",
"green")
score()
game_over()
cprint(room.str, "green")
room_no = room.no
if wis < room_no:
Expand Down Expand Up @@ -555,6 +567,8 @@ def start_room(room):
cprint("You can't attack that.", "green")
elif command == "debug":
debug_stuff()
elif command == "game":
game_data()
#----------------MODDING-------------#
elif False:
pass
Expand All @@ -565,6 +579,16 @@ def start_room(room):
cprint("I don't think that works.", "green")


def score():
cprint("Treasures: " + str(ts), "green")
cprint("Survival: " + str(ss), "green")
cprint("Getting well in: " + str(wis), "green")
cprint("Hints used: " + str(0 - hs), "green")
if ots > 0:
cprint("Other: " + str(ots), "green")
cprint("Score: " + str(ts + ss + wis + hs + ots), "green")


def inventory():
cprint("You are holding:", "green")
for item in invent:
Expand Down Expand Up @@ -639,18 +663,11 @@ def info_cca():
"green")


def score():
cprint("Treasures: " + str(ts), "green")
cprint("Survival: " + str(ss), "green")
cprint("Getting well in: " + str(wis), "green")
cprint("Hints used: " + str(0 - hs), "green")
if ots > 0:
cprint("Other: " + str(ots), "green")
cprint("Score: " + str(ts + ss + wis + hs + ots), "green")


def news():
cprint("V0.5 more stuff like excalibur", "green")
cprint(
"V1.0.0 Working: You can win now! Added a lot of documentation, plus the game works.",
"green")
cprint("V0.5: more stuff like excalibur", "green")
cprint("V0.4: Added a lot more treasure and also a dragon", "green")
cprint("V0.3: We have a 151 point game yay", "green")
cprint(
Expand Down

0 comments on commit c122b0a

Please sign in to comment.