-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyrpg.py
41 lines (29 loc) · 871 Bytes
/
pyrpg.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# PyRPG
# File: pyrpg.py
# Version: 1.0
# Creator: Joel D. Garrett
# Modified: 3/4/2011
import os
from gamestate import *
from mainmenu import *
from player import *
from charcreation import *
def main():
currentState = kGameStateMainMenu
# Enter character creation
player = createNewPlayer()
while currentState > kGameStateExit:
os.system('clear')
print "%s you are standing at the gates of the town. What would you like to do?" % (player.name)
# Display Main Menu
player.printStats()
if currentState == kGameStateMainMenu:
currentState = MainMenu().display()
# TODO: Enter town
# TODO: Enter world
# Pause for reading
if currentState != kGameStateExit:
print "\n -- Press any key to continue --"
raw_input()
return 0
main()