示例#1
0
 private void Asteroids_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 'g')
     {
         if (grCons.GetType() == spriteConst.GetType())
         {
             grCons = polGrap;
         }
         else
         {
             grCons = spriteConst;
         }
     }
 }
示例#2
0
 public Asteroids()
 {
     InitializeComponent();
     grCons = polGrap;
     NewGame();
 }