1 """ Pygame-zero application module. """
5 from .world import World
6 from .scenes.base import Engine
7 from .scenes.menu import MenuScene
8 from .constants import WIDTH, HEIGHT, TITLE
11 engine = Engine(sys.modules[__name__], MenuScene(), World())
22 def on_mouse_down(pos, button):
23 engine.on_mouse_down(pos, button)
26 def on_mouse_up(pos, button):
27 engine.on_mouse_up(pos, button)
30 # NOTE: on_mouse_move is not hooked up because of
31 # https://bitbucket.org/lordmauve/pgzero/issues/41/
32 # spellchecker-has-wrong-argument-names-for
35 def on_key_down(key, mod, unicode):
36 engine.on_key_down(key, mod, unicode)
39 def on_key_up(key, mod):
40 engine.on_key_up(key, mod)