I have to make a clone of galaxian for a computer project and I'm having some trouble. I cannot get the ship to shoot. I've looked at some code form other programs, but I can't understand it very well. Can anyone help me? I want the program to show a moving object or line when the user hits the space bar, and when it hits the enemy, I want the computer to record it. Can anyone help me with the code?

If you want more info, just ask. Thanks