Grid based collision - How many cells?

Posted by Fibericon on Game Development See other posts from Game Development or by Fibericon
Published on 2012-08-29T11:04:00Z Indexed on 2012/08/29 15:51 UTC
Read the original article Hit count: 250

The game I'm creating is a bullet hell game, so there can be quite a few objects on the screen at any given time. It probably maxes out at about 40 enemies and 200 or so bullets. That being said, I'm splitting up the playing field into a grid for my collision checking. Right now, it's only 8 cells. How many would be optimal? I'm worried that if I use too many, I'll be wasting CPU power. My main concern is processing power, to make the game run smoothly. RAM is not a big concern for me.

© Game Development or respective owner

Related posts about XNA

Related posts about collision-detection