projects
/
naja.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d509ec20e2e914e958b172380c2f3842b8d6648c
[naja.git]
/
naja
/
engine.py
1
import pygame
2
import pygame.locals as pgl
3
4
5
class Engine(object):
6
def __init__(self, surface):
7
self._surface = surface
8
9
def run(self):
10
while True:
11
for ev in pygame.event.get():
12
if ev.type == pgl.QUIT:
13
return
14
# TODO: work
15
pygame.display.flip()