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