-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
28 lines (21 loc) · 823 Bytes
/
README.txt
File metadata and controls
28 lines (21 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Text adventure alpha!
compatible with python 3
Overview of what the different files do:
world/ folder is to save in-game data
main.py:
where the magic happens. Main loop is pretty self-explanatory.
Other useful functions here
resolveEncounter(): Let the player face the dangers of a room
lootRoom(): Let the player loot everything
doMovement(): Decides if the player is allowed to move at all
room.py:
Room class definition. Also getRoom(position) function and most importantly:
initialiseDungeon() is defined here! This is basically where the entire dungeon architecture is built
player.py:
Player class definition
NPC.py:
NPC class definition
objects.py:
Object class definition, also sub-class Key
fighting.py:
Here the entire fighting system is defined!