How to do reflective collisions with particles hitting background tiles?
Posted
by
Shawn LeBlanc
on Game Development
See other posts from Game Development
or by Shawn LeBlanc
Published on 2012-03-29T02:13:02Z
Indexed on
2012/03/29
5:42 UTC
Read the original article
Hit count: 406
In my 2d pixel old-school platformer, I'm looking for methods for bouncing particles off of background tiles. Particles aren't affected by gravity and collisions are "reflective". By that I mean a particle hitting the side of a square tile at 45 degrees should bounce off at 45 degrees as well.
We can assume that tiles will always be perfectly square. No slopes or anything.
What are efficient methods and algorithms to do this? I'd be implementing this on a Sega Genesis.
© Game Development or respective owner