Posted: Mon 11:50 am Post subject: (No subject) Then you'd just have to search through the array for the 3 attached matching circles and delete them, then drop anything attached to them below. So once hit, you find the closest emply cell and move your circle there. What I mean is that you store your circles in a 2D array although every 2nd row must be a bit displaced to the side. You'll be using circle collision detection to figure out when you finally hit something (dont forget the ceiling), at that point you'd have to move your circle to the closest array cell. Hitting the wall is easy, you just multiple X displacement by -1 to reverse the direction. Thats how mcuh your circle will be moving on each axis each time through the loop. You'd use cos to move the shooting cannon around in a circle, then convert that into X/Y displacement vector components. You better be in grade 11+, else you might have a bit of a hard time figuring out the formulas. Posted: Mon 11:44 am Post subject: (No subject)Īh, you'd need some madd trig the way I figure it. Also, can you teach me how to control and change the direction when I shoot? I just have some basic ideas on how to make this game work but I have no idea how to shoot the bubbles and make them disappear when they're joined together. ![]() When 3 or more than 3 bubbles of the same colour are joined together they disappear and the bubbles that have been attached below them also fall down. There are bunch of different-coloured bubbles at the top part of the screen and I have to shoot bubbles one at a time from the bottom part of the screen to join the same coloured bubbles together. I just started making a game for my final project. Posted: Mon 7:14 am Post subject: bubble shooting game Wiki Blog Search Turing Chat Room Members
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |