Introduction - If you have any usage issues, please Google them yourself
I drive by scanning the keys to control movement (only four buttons, we set up around four direction buttons, bullets set to automatically launch)
Generated by the rand function to move the enemy (the enemy set the maximum number of ENEMYMAXNUM, as long as less than this number of cycles to produce each enemy or enemy is not generated. The enemy will move in the Y axis, if the enemy with my machine collision, then the explosion)
Generation and mobile enemy bullets (bullets for each enemy aircraft a maximum of BULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullet hit my machine , then the explosion, LIFE by 1, re-start the game)
My generation and mobile machine bullets (bullets and the maximum number MYBULLETMAXNUM, below this value, each cycle will produce the aircraft in front of a bullet, in the Y-axis direction SPEED.Y. If the bullets hit the enemy, then the explosion .)