LibGDX smart collision detection actors -


so i'm creating towerdefence-game lot(5-25) towers exist.

now i'm trying think of smart way handle collision detection, meaning spawning creature in range.

the obvious way (for me @ least) create list of creatures , list of towers, every tower checks, if creature in reach.

but i'm pretty 20 towers game crash (especially on smartphone), since tower collision-checks every frame.

isn't there kind of way, tower waits collision, , if happens, reacts on it? (like listener, collisions)


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -