--- /dev/null
+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()