opencodenitr / hephaestus

A repository for small automation/crazy/game projects by the OpenCode
Apache License 2.0
6 stars 9 forks source link

Game Restart and Circular Imports #24

Open 007vedant opened 3 years ago

007vedant commented 3 years ago
  1. Game music continues even after ESC is pushed and the menu appears again. Music must be restarted.
  2. Resolve circular import issues
    1. root should not import main, the restart (ESC) logic should be implemented in game-loop of main.py itself so modify root.py accordingly so that it does not contain import of game_menu() of main.py
    2. Use quit() instead of sys.exit()
    3. Remove unsused variables.