Done!

Going to call it and be officially done! Had a great time working with all of you guys!

(log in to comment)

Comments

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.
well, 'up and running', as it turns out might be exagerating; up and hanging might be better description.  I get to the title screen, but pressing keyboard buttons do nothing, and I've got no sound.  Ctrl-C gives me this stack:
 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.
replace the identity tests with equality tests and it will work for you. That is where the code checks something is another_thing -> something == another_thing.
What, like

perl -i -pe 's/\bis +not\b/!=/g' *
perl -i -pe 's/\bis\b/==/g' *

or something more specific?
That looks like it would work.
yea, though I don't think you have to do all of them.  I did just the key handlers I think and was able to play.