interactivity

Whee.. now we can place objects and move them around and see how the steam and water react. Don't worry, the gaminess is not too far away now!

Have a play: rushed.tar.gz (requires pygame & pyopengl). Click to place an object, click&drag to reposition it, and click and drag the rotation handles (shown below) to rotate it. Easy eh?

(log in to comment)

Comments

I tried to place an object but I got this...

Traceback (most recent call last):
  File "steam.py", line 751, in ?
    game.loop()
  File "steam.py", line 737, in loop
    self.mouse(event)
  File "steam.py", line 708, in mouse
    obj = PlaceableObject(50, 20, '', 'cold')
  File "steam.py", line 178, in __init__
    self.rotationHandleSprite = Sprite('rot_handle.png')
  File "steam.py", line 15, in __init__
    self.tex, self.width, self.height = res.getTexture(filename)
  File "/local/d0p6/aw/pyweek/rushed/res.py", line 40, in getTexture
    return res.getTexture(filename)
  File "/local/d0p6/aw/pyweek/rushed/res.py", line 33, in getTexture
    pygame.image.tostring(img, 'RGBA', True))
OpenGL.GL.GLerror: [Errno 1281] invalid value

I get the same error. I have Python 2.4.2, PyOpenGL 2.0.1.09 and PyGame 1.7.1. I hope that helps you fix the bug.
I was actually thinking of doing something like this, but couldn't figure out how to make it interesting. I think you have tackled the problem quite nicely. I hope you can make it into a fun game, too!
I smell high scores in the innovation category. ;-D
Ah, your video cards don't support non-power-of-2 texture size on rot_handle.png. I'll fix this tonight.
Wow, that is so cool! The picking of existing places rectangles is a little off (sometimes I found it adding new ones).

Played with it for a while :)

Yes, my video card is a very very basic Intel integrated card. The game also didn't run very fast. I hope you have some time to optimise it a bit before Sunday. I really want to play it. :-/