Alright so first things first hi all ;D
I’m having some issues when it comes to collision detection, i understand the theory of that when objects touch the program will do something…that bits easy, so for a university assignment i’ve been given some skeleton code and asked to modify it to create a different game, the game i’m creating is similar to pacman (using same looking player), the character will be “eating” circles(munchies), so i’ve got all my code working up till collision detection, i’m having issues figuring where to place the call (CollisionDetection(); ) and also how to actually get the program to detect the collision and then delete the object.
So heres all of my code (in notepad cause it wouldn’t fit all on here http://cid-3eb98c6f7b408c38.skydrive.live.com/self.aspx/Public/java%20pacman.txt)
just a few notes when the collision occur i want the monster to increase in size, and also increment the score int by 1, (these both work when for loop is implemented), oh and obviously delete the munchie which it collided with, the println is just for testing reasons.
Any help would be great.
thanks matt.