Sample Beginner Video Games

Below is a number of sample beginner games, that you can use to try, modify, and learn. Remember that there is a tutorials page to learn the basics.


Good Fox, Bad Rabbits Explanations
There is 1 rabbit and 2 carrots.
There is a fox controlled by the user with the mouse.
Object declaration, instantiation, and initial placement.
Declaration of controlled object.
The rabbits move randomly.
When a rabbit sees a carrot, the rabbit runs toward the carrot.
When a rabbit collides with a carrot, the rabbit eats the carrot.
When a rabbit collides with a border, the rabbit reverses direction.
Unconditional and conditional statements for describing how the rabbits behave, including border event.
When the fox collides with a rabbit, the fox eats the rabbit. Conditional statement for collision detection.
When all the rabbits are gone, you win.
When all the carrots are gone, the game is over.
Conditional statement for describing game control.
Map:
Click the image to try it



Good Fox, Bad Rabbits 2 Explanations
There are 20 rabbits and 20 carrots.
There is a fox controlled by the user with the mouse.
Object declaration, instantiation, and initial placement.
Declaration of controlled object.
The rabbits move randomly.
When a rabbit sees a carrot, the rabbit runs toward the carrot.
When a rabbit collides with a carrot, the rabbit eats the carrot.
When a rabbit collides with a border, the rabbit reverses direction.
Unconditional and conditional statements for describing how the rabbits behave, including border event.
When the fox collides with a rabbit, the fox eats the rabbit. Conditional statement for collision detection.
When all the rabbits are gone, you win.
When all the carrots are gone, the game is over.
Conditional statement for describing game control.
Map:
Click the image to try it


Next Page

Samples Page