Skip to content

CodingGarden/p5-brick-breaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brick Breaker Game with p5.js

Play the game here: https://brick-breaker.now.sh/

  • Create index.html
  • Add p5.js
  • Set up basic p5 sketch
  • Display score
  • Get a paddle on the screen
  • Move the paddle with the keyboard keys
  • Get a ball on the screen
  • Launch the ball when the game starts
  • Bounce ball off of edges
  • Bounce ball off paddle
  • Create 1 row of bricks
  • Ball bounces off brick
    • Brick is destroyed
    • Score increases by 1
  • Game is over when all bricks are destroyed
  • Game over when ball is dropped

Stretch

  • Each row of bricks is worth +1 points as it goes up
  • Harder bricks take more than one bounce to destroy
  • Increase speed with every brick that is broken
  • 3 lives, game over
  • Add acceleration and deceleration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors