Click here to see deployed game
This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][https://creativecommons.org/licenses/by-nc-sa/4.0/].
"No Adults Allowed" is a game where the player is a kid alone at house. The player can move vertically and horizontally through the room, avoiding incoming obstacles that appear moving in one direction. The game ends either when the player's score reaches 0 (Game lost) or when the timer stops (Game won), showing the final score to the user. The score will increase if the player eats food, and it will decrease every time the player hits an obstacle or an enemy.
- Obstacles randomly appear in the space and move in one direction.
- Touching an enemy or obstacle decreases the score.
- Food randomly appears in the space every 3 seconds.
- Eating food increases the score.
- Timer is set before starting (30 sec.).
- The player can choose between 2 avatars (Kid 1 or Kid 2).
- Add music button (on/off)
- Responsive web design for tablets and phones
- [0] Add multiplayer option in one scene.
-
callDOMevents () {}
-
playMusic () {}
-
setCanvas () {}
-
drawCanvas() {}
-
drawLimits () {}
-
drawFloor () {}
-
drawBackWall () {}
-
drawWall () {}
-
draw () {}
-
getRandomArbitrary () {}
-
createFire () {}
-
createRat () {}
-
createPizza () {}
-
game () {}
-
updateTimer () {}
-
setNewGame () {}
-
DomElement () {}
-
gameStart () {}
-
loadSplashScreen () {}
-
removeSplashScreen () {}
-
loadGameScreen () {}
-
removeGameScreen () {}
-
loadGameOverScreen () {}
-
removeGameOverScreen () {}
-
gameOver () {}
- this.x;
- this.y;
- this.direction;
- this.playerImg;
- this.width;
- this.height;
- this.canvas;
- this.ctx;
- this.xMove;
- this.yMove;
- draw () {}
- this.x;
- this.y;
- this.direction;
- this.playerImg;
- this.width;
- this.height;
- this.canvas;
- this.ctx;
- draw () {}
- this.x;
- this.y;
- this.direction;
- this.playerImg;
- this.width;
- this.height;
- this.canvas;
- this.ctx;
- draw () {}
Definition of the different states and their transition (transition functions)
- splashScreen
- gameScreen - transition between outer space and inner space
- gameOverScreen
