This repo contains just enough code to make basic educational games.
You can start changing and experimenting with draw() funciton. There is nothing else needed.
Whenever one of the defined 6 key is pressed related flag becames true.
First Mission:
- Make box movable by arrow keys.
Secon Mission:
- Do not allow box to cross game boundaries
Third Mission:
- Make a random square. Detect when our movable square collide with it
- If collides remove that square and add score (define a score variable) to player.
Fourt Mission:
- Print score
Fifth Mission:
- After random square collided with player, create new random square
Sixth Mission:
- Add time to game. Countdown. And after time ends end the game.