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