Monday, 30 April 2012

AHHHHHHHHHHH

I recorded today for about 5mins then i paused to get the door and forget to start it again so 40mins of work has gone unrecorded.

On top of this i soon noticed that while i had converted class's to inherit from a GameObject class and updated main that my collision function was not working correctly, after removing a line of code in the Ball class that changed the direction of the ball when it hits the AI's paddle i found it started to pass right through the paddle but the player paddle and ball was unaffected.

90 minutes later i realised i had declared boundx and boundy in the AI class as well as GameObject and after to removing it from the AI class it now works.

Wasn't alot of time there for a simple mistake.

No comments:

Post a Comment