NoScopeProductions / superawesomegame

A super awesome game
4 stars 0 forks source link

Projectiles are not destroyed unless they collide with terrain #26

Open StefanoFiumara opened 7 years ago

StefanoFiumara commented 7 years ago

This means that if we overshoot, our projectile will never hit anything and continue flying forever.

xCmac commented 7 years ago

@StefanoFiumara could this be as simple as to destroy if it goes past camera view or some defined bounds of the map?

Also sounds like an opportunity for object pooling.

StefanoFiumara commented 7 years ago

I don't think object pooling will be necessary, but yes, the solution is basically to have an out of bounds collided that cleans up projectiles that are overshot