Asteroids with Pygame
Remarkably, my Asteroids project is coming along. It's a big kick to see things happening on the screen. All the engine code is there now, so it's pretty straightforward to add the individual pieces.
The collision detection works, but it's a little flakey. It works most of the time for detecting ship-to-asteroid hits, but it doesn't work at all for the small shot-to-asteroid hits. I'm spending a lot of CPU time on detecting collisions, so I will either have to optimize the code or use Psyco on the final product.
I think I may eventually write an article on the making of this game. There aren't enough good (read: advanced) PyGame tutorials out on the web, and I would imagine I would get a lot of hits from interested programmers.
UPDATE: See the final game. Source code included.
The collision detection works, but it's a little flakey. It works most of the time for detecting ship-to-asteroid hits, but it doesn't work at all for the small shot-to-asteroid hits. I'm spending a lot of CPU time on detecting collisions, so I will either have to optimize the code or use Psyco on the final product.
I think I may eventually write an article on the making of this game. There aren't enough good (read: advanced) PyGame tutorials out on the web, and I would imagine I would get a lot of hits from interested programmers.
UPDATE: See the final game. Source code included.

0 Comments:
Post a Comment
<$I18N$LinksToThisPost>:
Create a Link
<< Home