private void Form1_Paint(object sender, PaintEventArgs e) { kiro.Draw(e.Graphics); kiro.DrawBullets(e.Graphics); foreach (Zombie z in zombies) { z.Draw(e.Graphics); } foreach (AmmoGift gift in gifts) { gift.Draw(e.Graphics); } if (Shoots == true) { kiro.Shoot(); Shoots = false; } if (hasBoss) { boss.Draw(e.Graphics); hasBoss = true; } }
public void Paint(Graphics g) { foreach (Zombie2 item in zombies) { item.Draw(g); } foreach (var item in ZombieBullets) { item.Draw(g); } hero.DrawBullets(g); foreach (AmmoGift gift in gifts) { gift.Draw(g); } if (Shoots == true) { hero.Shoot(); Shoots = false; } if (hasBoss) { foreach (Bullet b in BossBullets) { b.DrawBossBullets(g); } boss.Draw(g); hasBoss = true; } }
public void Paint(Graphics graphics) { hero.DrawBullets(graphics); foreach (Zombie z in zombies) { z.Draw(graphics); } foreach (AmmoGift gift in gifts) { gift.Draw(graphics); } if (Shoots == true) { hero.Shoot(); Shoots = false; } if (hasBoss) { boss.Draw(graphics); hasBoss = true; } }