public void StartGame() { back_ground.Draw(this); tank1.Draw(this); tank1.GetForm(this); tank2.Draw(this); tank2.GetForm(this); map.Draw(this); networker.myTank = tank1; networker.enemyTank = tank2; networker._identification = 0; }
private void Form1_Paint(object sender, PaintEventArgs e) { back_ground.Draw(this); tank.Draw(this); map.Draw(this); map2 = map; }
private void button1_Click(object sender, EventArgs e) { tank1 = new Tank(20, this.Height / 2, 10, this.Height / 2 + 10, 10, this.Height / 2 - 10, Color.Blue); tank2 = new Tank(this.Width - 40, this.Height / 2, this.Width - 30, this.Height / 2 - 10, this.Width - 30, this.Height / 2 + 10, Color.Red); bullets = new List <Bullet>(); bonuses = new List <Circle>(); tank1.Draw(ref formCanva); tank2.Draw(ref formCanva); timer1.Start(); }
private void Draw_Tank(Tank otherTank) { otherTank.Draw(this); }