Assignment 4: Collision
Description
Collision is an essential part of all games. Collision checks the proximity of any two objects using its x and y coordinates and the size of the object.
Task
Create a program that demonstrates the following types of collisions. As part of your program create at least 3 Image objects that move and 1 Image object that does not move.
Collision Testing to Demonstrate:
1) Display some text when one of the Image objects collides with the mouse.
2) Display some text when two Image objects collide.
3) Display some text when all three Image objects collide.
For this assignment,
Post a screen shot of the completed scene.
Post a screen shot of the program.
Questions
How do you check collision across 3 Images? you can use 1.collidedWith(2) and/or 1collidedWith(3) and/or 2.collidedWith(3)
and is for all three must be together for a thing to happen
or is for only 2 images for a thing to happen