Skip to content

haranbaa/moving-block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moving blocks (hard) ⬇️➡️⬅️⬆️

  • Repository: moving-blocks
  • Type of Challenge: Learning Challenge
  • Duration: Remainder of the week
  • Deployment strategy : Github pages or Netlify
  • Team challenge : solo

Learning objectives

  • Move DOM elements on the page
  • React to keypresses
  • Collision detection

The Mission

Ready for a next level challenge?

Have a square that you can move using the arrow keys. Have 4 other squares that move randomly around the screen. When the player square hits the other squares he loses a life (3 lives) and when all his lives are gone he loses the game. Show the time since the start how long he survived.

🌱 Must-have features

  • Square that can be controlled
  • Chasing squares
  • Life mechanic

🌼 Nice-to-have features

  • Graphics instead of squares
  • How a visual timer to show the time that has elapsed
  • Make "food" squares spawn that give an extra life when picked up
  • Make a "god" square that makes the user immortal for the enemy squares.
  • Maybe over time spawn more enemy squares.
  • Go crazy
Ps: If you sell this on the app store and become a millionaire the coach gets 10%. Deal?

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors