Skip to content

Megumikawa/coin-collector-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coin-collector

Coin-Collector is a game about collectiong two types of coins which falling from top to bottom. There are two things the player need to be careful. One is devils and the other is rocks. When you can't avoid the rock, you are automatically GAME OVER.

The game score is calculated how many coins you got and how many times hit the devils. The gold coin is +50 points, the silver coins is +30 points and when you hit the devils, you lose -10 points.

MVP (DOM - CANVAS)

  • There are two types of coins.
  • Player can move and jump.
  • There are two enemies to disturb your score.
  • When you hit the rock enemiy, the game is over.
  • Compete final score.

How to play

Right arrow key => Move right forward Left arrow key => Move left forward Up arrow key => Jump

Data structure

script.js

- draw()
- initial()
- resetGame()

base.js

- hideMain()
- showGame()
- showGameover()
- startGame()
- restartGame()

States y States Transitions

  • splashScreen
  • gameScreen
  • gameoverScreen

Developed this game during a first project week at a coding bootcamp Ironhack. Link to the game

Git

Repo

Slides

Presentation slides

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published