Skip to content

Latest commit

 

History

History
74 lines (57 loc) · 1.48 KB

README.md

File metadata and controls

74 lines (57 loc) · 1.48 KB

BubbleTrouble

Description

Bubble Trouble can be categorized as an Indi version of the famous game of 80's, this game will got only 1 level where the enemies will appear non-stop till your player die.

MVP

  • The player will be able to move between the screen jumping and falling depending of their position
  • The player will be able to shoot to the enemies
  • The enemies will appear randomly at the top of the screen and will start moving in direction of the player.

Backlog

  • Instead kill the enemies when get a shoot, they will be put inside the bubble.
  • Add an highscore register
  • Extra lives when reach certain level

Data Structure

main.js

  • startGame
  • eventListeners for keystrokes

game.js

  • Game class:
    • playMonsterCollision
    • playLevelUpMusic
    • clearBackground
    • drawBackground
    • drawData
    • drawBonus
    • spawnAttack
    • spawnEnemy
    • increaseLevel
    • bonusLive
    • collisionWithPlayer
    • collisionWithAttack
    • livesHandler
    • removeDedEnemies
    • handleAttack
    • gameLoop

player.js

  • Player class:
    • drawPlayer
    • moveLeft
    • moveRight
    • drawJump
    • jump
    • moveJumping
    • gravity
    • getImageUsed
    • play_collision
    • playSound

enemy.js

  • Enemy class:
    • drawEnemy
    • moveEnemy
    • imageMovingEnemy
    • drawDedEnemy

attack.js

  • Attack class:
    • playSound
    • drawAttack
    • moveAttack