Пример #1
0
 def __init__(self, window, name):
     BaseContext.__init__(self, name)
     self.window = window
     self.camera = Camera(window, self)
     self.camera.look_at = (64, 32)
     self.mouse_down = False
     self.init_world()
     self.time = 0
     self.spawn_countdown = 6
     self.spawn_rate = 1
     self.spawn_time = 10
     self.average_speed = tweak.average_speed
     self.bg = pyglet.resource.image('data/bg/city_burning.jpg')
Пример #2
0
 def __init__(self, window):
     BaseContext.__init__(self, "WinContext")
     self.window = window
     self.labels = []