Skip to content

Web Retro game where you are back to your childhood, alone at home, having as much fun as possible!

License

Notifications You must be signed in to change notification settings

sofisdev/no-adults-allowed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No Adults Allowed

Click here to see deployed game

License: CC BY-NC-SA 4.0

This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][https://creativecommons.org/licenses/by-nc-sa/4.0/].

License: CC BY-NC-SA 4.0

Description

"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.

MVP

  • 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).

Backlog

  • Add music button (on/off)
  • Responsive web design for tablets and phones
  • [0] Add multiplayer option in one scene.

Data structure

index.js

  • 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 () {}

player.js

  • this.x;
  • this.y;
  • this.direction;
  • this.playerImg;
  • this.width;
  • this.height;
  • this.canvas;
  • this.ctx;
  • this.xMove;
  • this.yMove;
  • draw () {}

obstacle.js

  • this.x;
  • this.y;
  • this.direction;
  • this.playerImg;
  • this.width;
  • this.height;
  • this.canvas;
  • this.ctx;
  • draw () {}

helpElements.js

  • this.x;
  • this.y;
  • this.direction;
  • this.playerImg;
  • this.width;
  • this.height;
  • this.canvas;
  • this.ctx;
  • draw () {}

States y States Transitions

Definition of the different states and their transition (transition functions)

  • splashScreen
  • gameScreen - transition between outer space and inner space
  • gameOverScreen

Links

Slides

Git

Contact Info

About

Web Retro game where you are back to your childhood, alone at home, having as much fun as possible!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published