projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
At skeletal menu scene.
[naja.git]
/
naja
/
__main__.py
diff --git
a/naja/__main__.py
b/naja/__main__.py
index a4f4aa3204b90ca06b21cfe7af6aca09f4a13ae1..0bf9c505b277d97b720cf8ac305ac4d5c0b263da 100644
(file)
--- a/
naja/__main__.py
+++ b/
naja/__main__.py
@@
-1,14
+1,26
@@
import sys
import pygame
import sys
import pygame
+import pygame.locals as pgl
+from naja.constants import SCREEN
+from naja.engine import Engine
+from naja.sound import sound
from naja.options import parse_args
from naja.options import parse_args
+from naja.scenes.menu import MenuScene
def main():
def main():
- '''Launch the na
gslang
'''
+ '''Launch the na
ja
'''
parse_args(sys.argv)
pygame.display.init()
pygame.font.init()
parse_args(sys.argv)
pygame.display.init()
pygame.font.init()
- raise NotImplementedError("Sorry, we haven't written a game yet.")
+ pygame.display.set_mode(SCREEN, pgl.SWSURFACE)
+ pygame.display.set_caption('Naja')
+ sound.init()
+
+ screen = pygame.display.get_surface()
+ scene = MenuScene()
+ engine = Engine(screen, scene)
+ engine.run()