I've updated my simple Simple SDL based perl game, so that:
- It has a name.
- It has an intro screen which uses that name!
- It has multiple balls.
- It gets harder, ie. more balls are added.
- The collision detection is much improved.
I still need to work on the rebound-angle but otherwise it is as complete as it will probably ever become. It would also be nice if the balls could collide with each other, and be different colours..
Regardless it was a fun diversion for a few hours, and probably tells me that I shouldn't attempt to waste more time doing gamy things, and that maths is too hard for me these days.
ObQuote: Interview with the vampire
Tags: bouncy bouncy, game, sdl 3 comments
I know you know that the rebound angle thing is messed up but I don't know if you are aware that the current implementation allows every level to be beaten with a single line.
Just draw a line left to right that slightly slopes downward to the exit box. If the balls hit the top of the line, they fall through the line and continue to the right. If they hit the bottom of the line, instead of bouncing to the left, they also bounce to the right :)