Sample Video Games

You can experiment, modify, and learn from the following sample games. Remember that there is a tutorials page to learn the basics.


Save the Kittens Explanations
There is a unicorn, 2 diamonds and 10 kittens.
You control the unicorn.
Object declaration, instantiation, and initial placement.
Declaration of controlled object.
The kittens wander around.
When a kitten reaches a border, it turns around.
When an arrow key is pressed, the unicorn moves in the same direction at 3 pixels per frame.
When the unicorn touches a kitten, the kitten follows the unicorn at 3 pixels per frame.
When a kitten touches a diamond, it freezes.
Statements for describing how the kittens and the unicorn move.
When all kittens are frozen, you win. Conditional statements for describing gameover.
Map:
-
-dd
Click the image to try it

Can you add a few more obstacle objects to make the game more challenging?


Next Page

Samples Page