Done!
Going to call it and be officially done! Had a great time working with all of you guys!(log in to comment)
Comments
File "/home/bjorn/source/pyweek10/penguins-of-DOOM/gamelib/main.py", line 502, in main
pyglet.app.run()
File "/usr/lib/pymodules/python2.6/pyglet/app/__init__.py", line 264, in run
EventLoop().run()
File "/usr/lib/pymodules/python2.6/pyglet/app/xlib.py", line 94, in run
sleep_time = self.idle()
File "/usr/lib/pymodules/python2.6/pyglet/app/__init__.py", line 194, in idle
window.flip()
File "/usr/lib/pymodules/python2.6/pyglet/window/xlib/__init__.py", line 792, in flip
2, (count.value + 1) % 2, byref(count))
I'm wondering if my installed version of pyglet is different from what you used - the README you included doesn't mention the version. . . or mention pyglet at all for that matter.
perl -i -pe 's/\bis +not\b/!=/g' *
perl -i -pe 's/\bis\b/==/g' *
or something more specific?
bjorn on 2010/04/04 20:06:
Traceback (most recent call last):File "run_game.py", line 18, in <module>
from gamelib import main
File "/home/bjorn/source/pyweek10/penguins-of-DOOM/gamelib/main.py", line 46, in <module>
field_section_gone = util.load_centered_image(DATAPATH + "pit.png")
AttributeError: 'module' object has no attribute 'load_centered_image'
It seems the cause of this is 'from pyglet.gl import *' (though I don't see any pyglet.gl.util defined in the api). Anwyway I changed:
import util
to
import util as utility
and s/util./utility./g in main.py and that got things running for me.