Cucumbis/proposal01 — Issue #2: Crashes
Author: Zer0-
Created: 2012-02-16 02:28:58+00:00
State: open

Game crashes.

To reproduce:
1. Run game.
2. click play
3. IMMEDIATLEY click more than once in the window

Traceback:

Traceback (most recent call last):
File "init.py", line 87, in
pyglet.app.run()
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/app/xlib.py", line 93, in run
sleep_time = self.idle()
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/app/__init__.py", line 187, in idle
dt = clock.tick(True)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/clock.py", line 700, in tick
return _default.tick(poll)
File "/usr/local/lib/python2.7/dist-packages/pyglet-1.1.4-py2.7.egg/pyglet/clock.py", line 303, in tick
item.func(ts - item.last_ts, *item.args, **item.kwargs)
File "init.py", line 80, in update
frameController.update()
File "/home/phil/Documents/python/proposal01/src/frameController.py", line 32, in update
frames[i].position.x -= (frames[i].position.x + setting.SCREEN_WIDTH*2)/10.0
KeyError: 'main'