Display a blank window
[naja.git] / naja / engine.py
diff --git a/naja/engine.py b/naja/engine.py
new file mode 100644 (file)
index 0000000..d509ec2
--- /dev/null
@@ -0,0 +1,15 @@
+import pygame
+import pygame.locals as pgl
+
+
+class Engine(object):
+    def __init__(self, surface):
+        self._surface = surface
+
+    def run(self):
+        while True:
+            for ev in pygame.event.get():
+                if ev.type == pgl.QUIT:
+                    return
+            # TODO: work
+            pygame.display.flip()