Example #1
0
 public void MovePlayer(Player plr)
 {
     tableLayoutPanel1.Controls.Add(plr.Picture, plr.X += plr.NextDirectionX, plr.Y += plr.NextDirectionY);
 }
Example #2
0
 void Shot(Player pl)
 {
     int i;
     for (i = 0; i < enemies.Count; i++)
         if (enemies[i].Killed) {
             tableLayoutPanel1.Controls.Remove(enemies[i].Picture);
         }
 }