private void tmrHero_Tick(object sender, EventArgs e) { hero.move(); for (int i = 0; i < walls.Length; i++) { if (hero.isColliding(walls[i])) { hero.stickTo(walls[i]); } } hero.redraw(); }