Skip to content

jakubhimmel/rush_hour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rush Hour: Pallea time

Description

A loyal and dedicated Hong Kong Inspector teams up with a reckless and loudmouthed L.A.P.D. detective to rescue the Chinese Consul's kidnapped daughter, while trying to arrest a dangerous crime lord along the way.

Your a UBER eats rider and you need to delivery the seafood pallea to IRONHACK on time. Avoid cars and pick up some extra points.

MVP (DOM - CANVAS)

CANVAS, Manage to avoid the obstacles.

Backlog

  • Bonus objects (lives, points, ...)
  • Score
  • Highscore table

Data structure

main.js

createSplashScreen(){
}

removeSplashScreen() { }

createGameScreen(){ }

removeGameScreen() { }

createGameOverScreen(){ }

removeGameOverScreen() { }

startGame() { }

gameOver() { }

bildDome(){}

game.js

Game(){
  this.canvas;
}

Game.prototype.startLoop(){ }

Game.prototype.checkCollisions{ }

Game.prototype.CheckIfFullLine{ }

Game.prototype.checkOverFlow = function(){ }

Game.prototype.clearCanvas = function(){ }

Game.prototype.passGameOverCallback = function() { }

Game.prototype.gameOver = function() { }

Player.prototype.didCollide = function(enemy) { }

Player.prototype.handleScreenCollision = function() { }

Player.prototype.removeLife = function() { }

Game.prototype.removeGameScreen = function() { }

Game.prototype.updateGameStats = function() { }

bicycle.js

function Player(canvas, lives) { }

Player.prototype.setDirection = function(direction) { }

Player.prototype.draw = function() { }

car.js

function Car(canvas, y, speed) { }

Enemy.prototype.draw = function() { }

Enemy.prototype.updatePosition = function() { }

Enemy.prototype.isInsideScreen = function() { }

Task

  • Main - constructer
  • Main - createSplashScreen
  • Main - removeSplashScreen
  • Main - createGameScreen
  • Main - removeGameScreen
  • Main - createGameOverScreen
  • Main - removeGameOverScreen
  • Main - startGame
  • Main - gameOver
  • Main - buildDome
  • Game - constructer
  • Game - startLoop
  • Game - checkCollisions
  • Game - CheckIfFullLine
  • Game - checkOverFlow
  • Game - clearCanvas
  • Game - passGameOverCallback
  • Game - didCollide
  • Game - handleScreenCollision
  • Game - removeLife
  • Game - gameOver
  • Game - removeGameScreen
  • Game - updateGameStats
  • Bicycle - Player
  • Bicycle - setDirection
  • Bicycle - didCollide
  • Bicycle - handleScreenCollision
  • Bicycle - draw
  • Bicycle - updatePosition
  • Bicycle - isInsideScreen
  • Car - draw
  • Car - updatePosition
  • Car - updatePosition
  • Car - isInsideScreen

Links

Trello

Trello

Git

Git

Slides

Slides

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors