Esempio n. 1
0
 public void lobbyForm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Q && ammoController.setBazooka())
     {
         nisan     = new BazookaNisan();
         crosshair = new Bazooka(105, this);
     }
     else if (e.KeyCode == Keys.W && ammoController.setPiercing())
     {
         bojaNisana = Color.FromArgb(255, 255, 127, 80);
         nisan      = new PiercingNisan();
         crosshair  = new Piercing(this);
     }
     else if (e.KeyCode == Keys.E && ammoController.setRegular())
     {
         bojaNisana = Color.FromArgb(0, 255, 0);
         nisan      = new RegularNisan();
         crosshair  = new Crosshair(this);
     }
     canvas.Invalidate();
 }