Games from Nothing: Black & White Exercise #2 — Monster in the Village

For the next lab I wanted my race to the end monster lab to be a simple game where you avoid objects moving up and down the screen to reach a safe zone. Basically it is the idea of the world’s hardest game. (if you don’t know what that it, google it and you’ll get the idea).  So for my game I had 4 elements. I had the player, a circular dragon (at the top of the screen), a town(bottom left of the screen), and a number of squares that would be bouncing from the dragon to the bottom of the screen. The goal is to get your player across the fire and into the town without being killed and then eaten by the dragon. And so after getting the interface down, the next part was motion. Getting the squares to move and bounce was simple and so it was time to get to collision. This is where I had the most trouble and still have trouble today. When I write the collision code in and I declare all of its necessities. The game just ends up lagging/going slower and the collision is still non existent. I am not sure what exactly I am doing wrong, but one thing is for sure and that is that there is no working collision in this game :/.

c d