projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display a blank window
[naja.git]
/
naja
/
__main__.py
diff --git
a/naja/__main__.py
b/naja/__main__.py
index 1a5050b7abf39ec221870957c370615bb0029c81..cd53e4a3667e37bb0f7fe98a40934dcdc26eefd8 100644
(file)
--- a/
naja/__main__.py
+++ b/
naja/__main__.py
@@
-1,7
+1,10
@@
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.options import parse_args
from naja.options import parse_args
@@
-11,4
+14,9
@@
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')
+
+ screen = pygame.display.get_surface()
+ engine = Engine(screen)
+ engine.run()