Press LMB to shoot. Press space to clear queue. Bar in top right indicates bullet cooldown, if LMB is pressed before it is full, the bar will reset and no bullet will be fired. The three empty squares indicate how many bullets are queued, including the one already fired. If you exceed three bullets, the queue is reset and the bullet on the screen is removed.
Work in progress/proof of concept. Program uses math to shoot bullets, and detects when they touch the randomly oscillating square. Also included: Bullet cooldown, bullet queuing/overload, shooting animations, and an animated crosshair. All in one sprite and one script. Looking to develop into a fully functioning game, still have to work out square/enemy AI, possibility of multiple squares/enemies, and more game mechanics such as upgrades, score, etc. Performance dramatically decreases when I attempt to have more than one projectile on screen. Suggestions/tips/improvements is more than welcome on any of these problems.