Color based collision detection
Posted
by
user1486826
on Game Development
See other posts from Game Development
or by user1486826
Published on 2012-10-12T20:15:49Z
Indexed on
2012/10/12
21:49 UTC
Read the original article
Hit count: 147
java
|collision-detection
I am making a game where you fly a ship around some randomly generated planets. Since I am using a for loop to draw over 5000 planets, using the rectangle class or an oval-type class for this is not an option, since creating many objects will severely affect performance. Bitmasking each planet will likely result in performance issues too, so the only candidate is color based collision detection, because I don't need to apply some sort of object to everything I want to check for collisions. Is any way to check the perimeter around the ship for a certain color?
© Game Development or respective owner