Re: Earwax
Thank you for your reply. I still have an issue:
In your example, you do thus:
from earwax import Game, Menu
from pyglet.window import Window
from first_level import first_level
game: Game = Game(name='Test Game') main_menu: Menu = Menu(game, 'Main Menu') @main_menu.item(title='Play Game') def play_game() -> None: game.replace_level(main_level) if __name__ == '__main__': window: Window = Window(caption=game.name) game.run(window, initial_level=main_menu)
I don't think you can do this: The first_level in this case would somehow need access to your game instance, unless you suggest importing game from your main file in *every* level?
I would appreciate the clearing up of confusion here
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector