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.


Maze Runner Explanations
Wide canvas with 4 frames.
There is a fast alien controlled by the user with the arrow keys.
Object declaration, instantiation, and initial placement.
Declaration of controlled object.
When an arrow key is pressed, the alien moves in the same direction. Conditional statements for describing how the objects move.
If the alien collides a wall, the alien explodes and the game is over.
If the alien collides with a spinstar, you win.
Conditional statements for describing gameover.
Map:
-
-
-
-
-
wwwwwwwwwww----------------wwwwwwwwww----------------wwwwwwww
w----------w-----------wwww----------w--------------w-------s
w-----------w---------w---------------wwwwwwwwwww---w-------s
w------------w-------w-------wwww----------------ww-w-------s
w-------------w-----w-------w----w-----------------ww-------s
w------a-------w----w------w------w------wwww-------w-------s
w---------------wwww------w--------w----w----w--------------s
w------------------------w----------wwww------w-------------s
w-----------------------w----------------------w------------s
wwwwwwwwwwwwwwwwwwwwwwww------------------------wwwwwwwwwwwww
Click the image to try it


Maze Runner 2 Explanations
Wide canvas with 4 frames.
There are 5 foxes.
There is a fast alien controlled by the user with the arrow keys.
Object declaration, instantiation, and initial placement.
Declaration of controlled object.
When a fox sees the alien, it chases the alien at 2 pixels per frame.
When a fox hits the wall, it reverses direction.
When an arrow key is pressed, the alien moves in the same direction.
When spacebar is pressed, the alien shoots to the right.
Conditional statements for describing how the objects move.
If the alien collides a wall, the alien explodes and the game is over.
If a fox is shot, it explodes.
If a fox cataches the alien, the alien explodes and the game is over.
If the alien collides with a spinstar, you win.
Conditional statements for describing gameover.
Map:
-
-
-
-
-
wwwwwwwwwww----------------wwwwwwwwww----------------wwwwwwww
w----------w-----------wwww----------w--------------w-------s
w-----------w---------w----x----------wwwwwwwwwww---w-------s
w------------w-------w-------wwww----------------ww-w-------s
w-------------w-----w-------w----w-----x-----------ww-------s
w------a-------w----w------w------w------wwww-------w-------s
w---------------wwww--x---w--------w----w----w--------------s
w-------------x----------w----------wwww------w---x---------s
w-----------------------w----------------------w------------s
wwwwwwwwwwwwwwwwwwwwwwww------------------------wwwwwwwwwwwww
Click the image to try it

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


Next Page

Samples Page