| |||||||||||
PyWeek - interactivityWhee.. 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? — alex on 2006/03/29 14:50 of Nelly's Rooftop Garden Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous March 2008 [entries, ratings] September 2007 [entries, ratings] April 2007 [entries, ratings] September 2006 [entries, ratings] > March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By andrew_j_w on 2006/03/29 15:08:
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 valueBy pekuja on 2006/03/29 18:20:
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
By alex on 2006/03/29 21:25:
Ah, your video cards don't support non-power-of-2 texture size on rot_handle.png. I'll fix this tonight.By richard on 2006/03/29 22:04:
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 :)
By pekuja on 2006/03/29 23:12:
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. :-/