diff options
Diffstat (limited to 'snakegame/engines/pyglet.py')
-rw-r--r-- | snakegame/engines/pyglet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snakegame/engines/pyglet.py b/snakegame/engines/pyglet.py index bff48ac..5c9e976 100644 --- a/snakegame/engines/pyglet.py +++ b/snakegame/engines/pyglet.py @@ -32,7 +32,7 @@ class PygletEngine(Engine, pyglet.window.Window): gl.glEnable(gl.GL_BLEND) gl.glBlendFunc(gl.GL_SRC_ALPHA, gl.GL_ONE_MINUS_SRC_ALPHA) - pyglet.clock.schedule_interval(lambda t: self.update_snakes(), 0.025) + pyglet.clock.schedule_interval(lambda t: self.update_snakes(), 1/30.0) def new_game(self, rows, columns, n_apples): super(PygletEngine, self).new_game(rows, columns, n_apples) |