Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The quality of your projectiles  are excellent.Do you instantiate or doing pooling of projectiles ? the game runs smoothly with lots of troops and the ai  behaves very well at moving , firing. i did  a similar game a long time ago , but i didn't achieve this level.  great work.

(+2)

Thanks for the kind words!

Each projectile is instantiated as a seperate object. There is no sophisticated physics simulation for the projectiles; their position just follows a ballistic curve, so nothing computation heavy here. Of course the units have to aim correctly to hit the moving targets while considering a ballistic curve (more details on that here), but this is calculated for each weapon before firing, not for each MG round currently in the air, so that is still ok.

The homing missiles however have a basic AI in-flight as they have to hit a moving target while avoiding obstacles. So with a lot of anti-armor units, the framerate will drop unfortunately.

thanks for sharing, very interesting.