Пример #1
0
        public override void Draw(GameTime gametime, SpriteBatch g)
        {
            g.End();
            g.Begin(SpriteSortMode.Deferred, null, SamplerState.PointWrap, null, null, null, camera.Transform);
            g.Draw(Ressources.Niveau2B, new Vector2(), Color.White);


            //AnimationPlayer(Zombie)
            foreach (Zombie Z in Zombies)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(ZombieCR)
            foreach (ZombieCR Z in ZombiesCR)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(ZombieCR)
            foreach (ZombieF Z in ZombiesF)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombie Z in BossZombies)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombieCR Z in BossZombiesCR)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombieF Z in BossZombiesF)
            {
                Z.Draw(gametime, g);
            }

            if (GestionExterne.numeroPerso == 0)
            {
                Joueur.Draw(gametime, g);
            }
            else
            {
                Joueur2.Draw(gametime, g);
            }

            //Dessin arriere plan
            g.Draw(Ressources.CoconNiv2B, new Vector2(10, 5), Color.White);
            g.Draw(Ressources.Colonne1Niv2B, new Vector2(370, 522), Color.White);
            g.Draw(Ressources.Colonne2Niv2B, new Vector2(1398, 518), Color.White);

            Hud.Draw(g);
            EV.Draw(g);
        }
Пример #2
0
        public override void Draw(GameTime gametime, SpriteBatch g)
        {
            g.End();
            g.Begin(SpriteSortMode.Deferred, null, SamplerState.PointWrap, null, null, null, camera.Transform);
            g.Draw(Ressources.Niveau1, new Vector2(), Color.White);

            //foreach (ObjCollisionable O in Obj) O.Draw(g);

            //AnimationPlayer(Zombie)
            foreach (Zombie Z in Zombies)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(ZombieCR)
            foreach (ZombieCR Z in ZombiesCR)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(ZombieCR)
            foreach (ZombieF Z in ZombiesF)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombie Z in BossZombies)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombieCR Z in BossZombiesCR)
            {
                Z.Draw(gametime, g);
            }

            //AnimationPlayer(BossZombie)
            foreach (BossZombieF Z in BossZombiesF)
            {
                Z.Draw(gametime, g);
            }

            if (GestionExterne.numeroPerso == 0)
            {
                Joueur.Draw(gametime, g);
            }
            else if (GestionExterne.numeroPerso == 1)
            {
                Joueur2.Draw(gametime, g);
            }
            else
            {
                Joueur3.Draw(gametime, g);
            }

            //Dessin des Dessins Avant Plan
            g.Draw(Ressources.Niv1Poubelle, new Vector2(55, 350), Color.White);
            g.Draw(Ressources.Niv1Flag, new Vector2(535, 38), Color.White);
            g.Draw(Ressources.Niv1Pilier, new Vector2(305, 100), Color.White);
            g.Draw(Ressources.Niv1Pont1, new Vector2(770, -12), Color.White);
            g.Draw(Ressources.Niv1Pont2, new Vector2(793, 307), Color.White);
            g.Draw(Ressources.Niv1MiniFlag1, new Vector2(1030, -10), Color.White);
            g.Draw(Ressources.Niv1MiniFlag2, new Vector2(1047, 235), Color.White);
            g.Draw(Ressources.Niv1Arbre, new Vector2(1240, 42), Color.White);
            g.Draw(Ressources.Niv1Maison, new Vector2(1170, 350), Color.White);


            //Dessin HUd et Nombre d'ennemis restants
            Hud.Draw(g);
            EV.Draw(g);
        }