More 2D Java gaming

Seven hours of further work on the game and its starting to look like a game. Some proper graphics have been added and I’ve started to code the game logic. I want pixel perfect collision detection, but since hardware assisted features like these have gone to hell during the last 15 years I have to code it myself. On the picture theres an extra window open for debugging purposes. This window shows what the collision detection algorithm sees. I was worried that this was going to be slow so I optimized it quite a bit. I still ended up with a system that does 65536 comparisons every frame…. but since cpu power has gone WAY up during the last 15 years this didn’t even bother the system at all. In fact I can hardly even measure if the collision detection is on or off.

Leave a Reply

Your email address will not be published.