This is just a simulation! There is no currency/scoring system quite yet. This is merely a base for a tower defense game. It uses clones and lists to prioritize targets. * Press SPACE to generate a new turret. * Click and drag turrets to move them. * You can spawn up to 35 turrets max. * To delete independent turrets, click them, and while holding down your mouse button, press the "D" key. * Let me know if you find any bugs! * Click on targets (the pink squares) to delete them! For the duration of the project, the turret is supposed to detect and fire at the clone that is both within its range and closest to the front of the clone group. See if you can make the turret fire at an invalid target! And if you made it happen, please tell me how. As of the moment the code seems flawless!
Warning: May lag with any amount over 10 turrets due to all of the calculations going on.