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
/
engine.py
diff --git
a/naja/engine.py
b/naja/engine.py
index d509ec20e2e914e958b172380c2f3842b8d6648c..fc58f18503ddcb0b67754da71d186bf639236a1c 100644
(file)
--- a/
naja/engine.py
+++ b/
naja/engine.py
@@
-3,13
+3,15
@@
import pygame.locals as pgl
class Engine(object):
class Engine(object):
- def __init__(self, surface):
+ def __init__(self, surface
, scene
):
self._surface = surface
self._surface = surface
+ self._scene = scene
def run(self):
while True:
for ev in pygame.event.get():
if ev.type == pgl.QUIT:
return
def run(self):
while True:
for ev in pygame.event.get():
if ev.type == pgl.QUIT:
return
+ self._scene.handle_event()
# TODO: work
pygame.display.flip()
# TODO: work
pygame.display.flip()