예제 #1
0
파일: Form1.cs 프로젝트: bigbanggk01/Tank
 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;
 }
예제 #2
0
 private void Form1_Paint(object sender, PaintEventArgs e)
 {
     back_ground.Draw(this);
     tank.Draw(this);
     map.Draw(this);
     map2 = map;
 }
예제 #3
0
 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();
 }
예제 #4
0
 private void Draw_Tank(Tank otherTank)
 {
     otherTank.Draw(this);
 }