We are going to start working on our combat mechanics of the game. The first thing we need to do is to program which button on the keyboard we want to press to fire the laser.
We are going to use the spacebar to tell our game when to create a clone of the lasers. Once the clone is made, then the lasers code will take over and actually move it across the screen.
We also need to add a delay to our firing mechanism or else the X-Wing will just throw out a constant stream of lasers.