Menu ▾ ▴

#5 Collision detection code, between multiple types of objects.

1.0
open
nobody
Roid Rage (8)
2012-06-06
2012-06-06
Chris
No

Write the code to detect collisions between the following objects.
Player/enemy ship = -1 shield, destroy enemy ship
player/enemy laser = player hit, -1 shield
player/asteroid = player hit,-1 shield
player/pick up

player laser/ enemy ship = player score, destroy enemy ship
player laser/ asteroid = player score, destroy asteroid ( or break asteroid into tiny pieces, as a bonus feature)

Discussion


Log in to post a comment.