68 lines
2.8 KiB
Python
68 lines
2.8 KiB
Python
from game import Game
|
|
from player import Player
|
|
from enemy import Enemy
|
|
|
|
# GAME SECTION
|
|
game = Game()
|
|
STATs = game.stats()
|
|
|
|
# PLAYER SECTION
|
|
player = Player("キーウィ")
|
|
|
|
# DUMMY SECTION
|
|
dummykid = Enemy()
|
|
|
|
|
|
def logo():
|
|
logo = """
|
|
⣀⡀⠀⠀⠀⠀⠀⠀⠀⡔⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
|
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡠⢚⣉⣠⡽⠂⠀⠀⠀⠀⡰⢋⡼⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⢴⡆⠀⠀
|
|
⠀⠀⠀⠀⠀⢀⡤⠐⢊⣥⠶⠛⠁⢀⠄⡆⣠⠤⣤⠞⢠⠿⢥⡤⠀⠀⠠⢤⠀⠀⠀⠤⠤⠤⡄⢠⠤⠄⠤⠀⠀⠀⠒⣆⡜⣿⣄⠀⡤⢤⠖⣠⣀⠤⢒⣭⠶⠛⠃⠀⠀
|
|
⢀⣀⡠⢴⣎⣥⣴⣾⣟⡓⠒⠒⠒⠺⣄⡋⢀⡾⢃⣴⢖⣢⣞⢁⣋⣉⣹⠏⠚⠛⢛⣉⣤⡴⢞⠃⣰⠾⠟⣛⣩⢵⢶⡟⣰⠇⠘⡼⢡⡟⣀⡋⢵⡞⠋⠁⠀⠀⠀⠀⠀
|
|
⠈⠢⠄⠤⠤⠤⠤⠤⠴⠤⠴⠶⠶⢾⠟⣱⡿⢤⢿⣕⠾⣿⣿⣩⡭⢤⠞⣰⠶⢤⣀⡉⠓⢾⡍⣠⠴⠾⠛⠹⠡⣟⡁⢰⢏⣼⡇⢰⣿⢀⠟⠳⣤⣌⣦⡀⠀⠀⠀⠀⠀
|
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡠⢃⡼⠋⠛⠾⠚⠁⠀⠈⠉⠀⠀⠸⣄⠏⠀⠀⠈⠙⠓⡟⣰⠏⠀⠀⠀⠘⠾⠛⠳⠞⠉⠁⠙⠋⠙⠚⠀⠀⠀⠙⠛⢿⣷⣤⣀⠀⠀
|
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣜⡵⠟⠀⠀⠀⠀⠀⠀⣼⣿⣾⣿⣽⣽⣿⣿⢏⢫⣻⡹⡽⣰⢏⣯⠍⡭⡍⣭⢩⡭⢩⡍⡏⡏⣯⡍⣍⠙⡭⢹⣄⣤⠄⢠⠉⠓⢿⣕⡄
|
|
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⣯⠃⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⣿⣿⣽⣾⣾⣟⣯⣣⣱⣾⣟⣞⣸⣇⣳⣃⣿⣛⣷⣬⠧⠳⠇⠿⢧⢿⢀⣷⢸⠧⢾⢃⠇⠀⠀⠀⠀⠁
|
|
"""
|
|
print(logo)
|
|
|
|
|
|
def menu():
|
|
running = True
|
|
while running:
|
|
if player is False:
|
|
print("--- CREATE CHARACTER ___")
|
|
game.create_character()
|
|
else:
|
|
print(f"--- HELLO {player.name} ___")
|
|
print("--- WARNING, TEST MODE ___")
|
|
print("? What you would like to do today?")
|
|
print("戦う [f]ight mode")
|
|
print("顔 show [c]haracter")
|
|
|
|
timetochoose = input(">___ ")
|
|
|
|
if timetochoose == "Q" or timetochoose == "q":
|
|
running = False
|
|
break
|
|
elif timetochoose == "F" or timetochoose == "f":
|
|
breakpoint()
|
|
game.clean_screen()
|
|
winorloose = game.figth_mode(player, dummykid)
|
|
if winorloose == 0:
|
|
print("### BRAK WALKI ###")
|
|
else:
|
|
print("LET'S FIGHT")
|
|
elif timetochoose == "C" or timetochoose == "c":
|
|
game.clean_screen()
|
|
player.show_stats(stats=STATs)
|
|
|
|
|
|
def main():
|
|
game.clean_screen()
|
|
logo()
|
|
menu()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|