projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start of scene class.
[naja.git]
/
naja
/
__main__.py
diff --git
a/naja/__main__.py
b/naja/__main__.py
index 1a5050b7abf39ec221870957c370615bb0029c81..9beb26c63957553e3e86b19ccc836b8eabf2bd1e 100644
(file)
--- a/
naja/__main__.py
+++ b/
naja/__main__.py
@@
-1,7
+1,11
@@
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
@@
-11,4
+15,10
@@
def main():
pygame.display.init()
pygame.font.init()
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()
+ engine = Engine(screen)
+ engine.run()