repl.it
@WagicalGale/

CodeJam4

Python

No description

fork
loading
Files
  • main.py
  • animations
  • classes
  • scenes
  • attacks.py
  • characters.py
  • fight.py
  • game.py
  • items.py
  • render.py
main.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from game import gameClass

# SKIPS TEXT WAIT - TURN OFF FOR PRODUCTION
dev = False

game = gameClass(dev)

def info():
    print("""
    Welcome to PyQuest. This is a game developed as part of the
    4th repl.it code jam.

    I spent most of the time writing an ascii game engine, with a
    fight system and rendering of ascii characters based on the settings
    in characters.py.

    In the game I made, you are a character who is tasked to kill
    a massive frog who wants to turn everyone into tadpoles.

    In time, I could improve the engine to include a mapping system and 
    better item management to make a more in-depth and coherent game.

    Code by Alex Gale - 2018
    """)

print("\n" * 100)

print("""
  _____          ____                     _
 |  __ \        / __ \                   | |
 | |__) |_   _ | |  | | _   _   ___  ___ | |_
 |  ___/| | | || |  | || | | | / _ \/ __|| __|
 | |    | |_| || |__| || |_| ||  __/\__ \| |_
 |_|     \__, | \___\_\ \__,_| \___||___/ \__|
          __/ |
         |___/
            A classic terminal RPG

1 - Start new Game
2 - Info
3 - Quit
""")

while True:
  userInput = input(">> ")

  if userInput == "1":
    game.start()
    break
  elif userInput == "2":
    info()
  elif userInput == "3":
    print("Goodbye")
    break
  else:
    print("Choose an option from the menu\n")
?