Sunday, February 19, 2012
Game progress
I have added bricks and an input component to handle touch events. The InputComponent gets the x and y values scales them from the screen values to world coordinates and adds them to a queue. This queue gets checked during the game loop and the Point object gets sent to the World class to be handled.
Wednesday, February 1, 2012
Strange Behavior Fixed
I found that by remembering the ball's last position and moving it back after a collision and making sure I only change the ball's direction once that now the ball bounces as expected, no more u-turns or strange behavior. I also ignore the ball hitting the back of the paddle so no more getting stuck.
Subscribe to:
Comments (Atom)