PyWeek - Robot Buzzsaw in KILL ALL MUTANTS
Ratings (show detail)
|robotversusmutants.zip — final||540.35 Kbytes||Jan||2011/09/17 23:56|
|The, ah, 'game'.|
|Screen Shot 2011-09-17 at 8.08.10 PM.png — final||62.86 Kbytes||Jan||2011/09/17 23:33|
|Taking a saw to a mutant|
Sunday 18 September, 2011
[ Jan @ 00:01 ] The end
We didn't finish. But I've submitted what we have anyway.
Thursday 15 September, 2011
[ Jan @ 03:05 ] Sprite animations and cocos2d
It took a day or so, but I am finally getting cocos2d. Or it feels like that anyway.
The key to image based animations in cocos2d seems to be pyglet. Understanding both was key to much happiness. But doing so was like making origami without instructions. It is surprising that there are so few - easily found - examples of image animation management in cocos.
Creating the animations is very simple. pyglet.image.Animation is all that is needed. I use spritesheets so from_image_sequence is my new best friend. The key bit of information is that a cocos sprite inherits two important things from pyglet.sprite.Sprite: the property image, and the event on_animation_end. So I use image to assign the next to play animation to an existing sprite, and on_animation_end to know when it ..ends.
Tuesday 13 September, 2011
[ codetext @ 04:18 ] It's alive
Jan has put Robot Buzzsaw in a room and I just drove him around in circles. It is very cool.
Now for the cutting (which means I need to get started on the blood).
Monday 12 September, 2011
[ Jan @ 11:56 ] Player sprites!
Just completed the player sprites using Photoshop (bitmap)