Skip to content

MesihK/basic-js-game-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Javascript Game Template

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.

Missions

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors