The objective of this game is to reach both of the yellow blocks (keys) and then bring them back to the black rectangle (door).
The turrets are designed to predict the movement of the player, shooting where they imagine the player will be, instead of where they are.
GAME PLAY SAMPLE
Click inside the square to play, Use the keyboard keys WASD to move the player and avoid getting shot.
Below are some of the turrets functions, first up is the update, the turret checks to see if the player is in range, and in the next function gathers data on which direction the player is moving to find out where the turret will shoot.