public Form1() { InitializeComponent(); //pictureBox1.BackColor = Color.Transparent; player = new Player(PlayerPictureBox,progressBar1); bat = new Bat(BatPictureBox); rect = new Rectangle(75, 56, 380, 139); progressBar1.Value = 100; timer = new Timer(); timer.Interval = 50; timer.Tick += new EventHandler(timer_Tick); timer.Enabled = true; timer.Start(); }
public Form1() { InitializeComponent(); //pictureBox1.BackColor = Color.Transparent; player = new Player(PlayerPictureBox, progressBar1); bat = new Bat(BatPictureBox); rect = new Rectangle(75, 56, 380, 139); progressBar1.Value = 100; timer = new Timer(); timer.Interval = 50; timer.Tick += new EventHandler(timer_Tick); timer.Enabled = true; timer.Start(); }