Aimbotting for turrets

It’s pretty hard to defend a planet if you’re alone. I mean, you’re just this tiny guy on this huge planet and aliens are attacking from all over the place. You simply won’t be able to defend the entire planet at once. The solution? Turrets!
These wasn’t that hard to implement since we’re placing the turret at the players position that we’ve already calculated and reuse the aiming and shooting code that we have for the player!

About Adrian Hedqvist

2015 Programming