Ballworld

This is a side-scroller game. Your player starts at the left end of the world. Your goal is to use the Arrow keys to move your player to the right end of the screen and jump into a hoop you’ll find there.

There are balls bouncing along the bottom of the world from right to left. When you collide with a ball, the effect on you depends on your height relative to the ball. If the player’s low edge is higher than the ball’s center, the player gets a score point. But if the player’s position is lower than this, the player loses a health point. In either case the ball is destroyed.

The player here uses the Hopper Controls. The idea is to hop over the balls and maybe land on top of them. The Hopper Controls move the player left and right ...

Get Software Engineering and Computer Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.