Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
        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;
            }
        }