public Form1() { Initialize(); InitializeComponent(); t = new thor(this.Height, this.Width); DoubleBuffered = true; score = 0; lvl = 1; lives = 3; hasHammer = false; timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); timer.Interval = 10; timer.Enabled = true; timer.Start(); thanos = new thanos(); timerThanos = new Timer(); timerThanos.Interval = 50; timerThanos.Tick += new EventHandler(timer3_Tick); //timerThanos.Start(); timerGauntlet = new Timer(); timerGauntlet.Interval = 50; timerGauntlet.Tick += new EventHandler(timer2_Tick); // timerGauntlet.Start(); DoubleBuffered = true; doc = new gauntletDoc(); generateGauntlet = 0; }
public bool hitTanos(thanos t) { if (position.X >= t.Position.X && position.X + 10 <= t.Position.X + 103 && position.Y <= t.Position.Y + 124 && position.Y >= t.Position.Y) { return(true); } return(false); }