For this program, I've been using the OpenGL-based reni2D library in Visual C++ 2008 Express Edition.
The said library is on this webpage: http://www.involuntaryexercise.com/apps/reni2D.zip
The problem I get happens when trying to make a brick from the sprite structure. I've been using an array of bricks, but at the moment have restrict...
The problem is when the player collides with the blackB the player doesn't stop. It slowly continues through the blackB. The IBAction is being used with a game loop. I need a way to freeze the player completely when it collides with the blackB. Any help is welcome, I am a beginner programmer. Thank you!
player and blackB are both UIImag...
Hi guys, I'm writing a pong game and I have a ball class that has velocity x, y, positions and all that stuff that every frame is updated by calling @ball.update, this moves the ball forward by its x_vel and Y_vel etc. My question is Should my collision code be in the loop or in the update method of the ball class? Or should it all be in...