Inspiration... its a pretty iconic game but I've always wanted to try making it and I'm a very advanced programmer so it seemed like a fun idea

What it does... When you use the up and down arrow keys, the paddle moves which lets you bounce the ball against it in order to hit the three bricks on the other side. The goal of the game is to hit all three so that the score become 3. If you miss the ball with the paddle when it comes back, you loose and the stage changes to explain that.

How I built it... I started with a ball sprite and made it bounce around the screen. Then I added the paddle that would move up and down with the arrows and when the ball bounced against the paddle, it would bounce at a 130 degree angle off of the paddle back towards the bricks. By pressing space, the game is reset, score goes back to 0, the bricks become visible again, and the ball goes back to the center of the screen.

Challenges I ran into... When the ball would hit one of the bricks, the score would change by one, I would make the brick invisible, and then add one to my score. The problem was that I could not for the life of me figure out how to stop the game from adding to the score even after the brick was invisible. I figured out that I could use an if statement and use a new costume to basically say that if the ball hit it, and it was invisible, it would change to score by 0.

Accomplishments that I'm proud of... figuring out how to get the score to

What I learned... Sprites are evil

What's next for Beatball... I couldn't figure out how to make the game stop if the paddle misses the ball so that would definitely be next

Built With

  • snap.berkly.edu
Share this project:

Updates