print("You suddenly wake up in an ancient abandoned manner house. Every window boarded, every door to the real world locked...")
print("The old house finds itself inhabited by a plethora of strange monsters, of which many seem violent. It is up to you...")
print("to trek forward and find a way out with what little you have - avoiding death as if it were around every corner.")
print("\nIn order to win, you must level up to lvl 5 and then navigate to the final boss room which contains the only passage to the real world. This room is located at the end of the long, dark underground passage... You may find this fight easier the higher level you are")
input("> Press enter to begin the game.")
# Main game loop
menu_beg()
sleep(1)
clear()
whileTrue:
clear()
# Display game status (room description, inventory etc.)
print_room(player.current_room)
populate_enemies()
populate_rooms()
player.fought_boss=False
print("You suddenly wake up in an ancient abandoned manner house. Every window boarded, every door to the real world locked...")
print("The old house finds itself inhabited by a plethora of strange monsters, of which many seem violent. It is up to you...")
print("to trek forward and find a way out with what little you have - avoiding death as if it were around every corner.")
print("\nIn order to win, you must level up to lvl 5 and then navigate to the final boss room which contains the only passage to the real world. This room is located at the end of the long, dark underground passage... You may find this fight easier the higher level you are")
input("> Press enter to begin the game.")
# Main game loop
whileTrue:
clear()
# Display game status (room description, inventory etc.)
print_room(player.current_room)
ifplayer.current_room.cleared==False:
# filler, for now
forenemyinplayer.current_room.enemies:
combat(enemy)
ifplayer.current_room.cleared==False:
# filler, for now
forenemyinplayer.current_room.enemies:
combat(enemy)
ifplayer.alive==False:
break
ifplayer.alive==False:
break
else:
player.current_room.cleared=True
ifplayer.alive==False:
break
else:
player.current_room.cleared=True
# Show the menu with possible actions and ask the player