It took a lot of trial and error to figure out how to handle the angles correctly for sending the ball back away from the bricks or up from the paddle. The brick code is also pretty simple for keeping track of the score and hiding the brick if it gets hit.Īnd now for the details of the ball code. The paddle code is super simple as we keep the complex logic in the ball (taking queues from the Pong Game we already created). Eventually I got it working and he enjoyed playing it, but he hasn’t shown enough interest to add more features yet.įirst we have the stage code which handles showing the correct costume and configuring global variables. I eventually had to work on it myself a bit because I was really getting stumped on getting the angles right when the ball hits a brick or bounces off the paddle. We started with what we learned from building Pong previously.ĭevon didn’t really get what I was trying to do on this one so he kept trying to take things a different direction. As I started building this game, I realized how many cool features we could add later such as special bricks and power boosts. I remember playing brick breaker type games when I was a kid and wanted to give Devon the same experience.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |