projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Better location shifting.
[naja.git]
/
naja
/
__main__.py
diff --git
a/naja/__main__.py
b/naja/__main__.py
index 5ed191429bb4078b8b939d7f93e395f6244c0bd4..70330cbbd82173d8184a4095184ae82e468676d0 100644
(file)
--- a/
naja/__main__.py
+++ b/
naja/__main__.py
@@
-7,6
+7,8
@@
from naja.constants import SCREEN
from naja.engine import Engine
from naja.sound import sound
from naja.options import parse_args
from naja.engine import Engine
from naja.sound import sound
from naja.options import parse_args
+from naja.scenes.menu import MenuScene
+from naja.gamestate import GameState
def main():
def main():
@@
-20,7
+22,9
@@
def main():
sound.init()
screen = pygame.display.get_surface()
sound.init()
screen = pygame.display.get_surface()
- engine = Engine(screen)
+ state = GameState()
+ scene = MenuScene(state)
+ engine = Engine(screen, scene, state)
engine.run()
engine.run()