Click the flag to start, then click where you want to place a turret. Click a turret to delete it. T to toggle between homing and non homing tower (homing is WIP) There is a maximum amount of turrets you can place, but I don't know what it is or if you can get that many. The turrets will just shoot at your cursor once a second, nothing interesting.
Take a look in the first sprite's code if you want to see how grid-locked systems work! It's pretty simple, just do some quick rounding to find the nearest grid unit compared to the sprite's coordinate. Another project from the inactive codeman! Decided to have some fun coding this, gave myself a headache instead. Forgot how much of a pain clones from clones can be. Currently this is just a beta engine, so be prepared to not find much interesting stuff. Update History: 10-26-20: released to public globalized engine a bit more to handle different tower types added homing tower, need to polish homing script 10-27-20: polished homing script fixed shots not working correctly with multiple turrets added an enemy for the turrets to shoot instead of the cursor, on the to-do list to add multiple enemy support added some sound effects for shooting! added a target on the enemy for no reason New turret - shotgun! 10-30-20 Added multiple enemy tracking (ack). not perfect, still need to optimize changed how the engine works a bit