コード例 #1
0
 public void Draw(GameTime gametime, SpriteBatch g)
 {
     //g.Draw(Ressources.Test, recPerso, Color.Blue);
     //  g.Draw(Ressources.Test, RecZombie, Color.Red);
     if (Vie != null)
     {
         Vie.Draw(g);
     }
     APZ.Draw(gametime, g, Position, flip, DeadColor);
 }
コード例 #2
0
        public void Draw(GameTime gametime, SpriteBatch g)
        {
            //g.Draw(Ressources.Test, recPerso, Color.Blue);
            //  g.Draw(Ressources.Test, RecZombie, Color.Red);
            if (Vie != null)
            {
                Vie.Draw(g);
            }
            APZ.Draw(gametime, g, Position, flip, DeadColor);


            ///Roue
            if (flip == SpriteEffects.None)
            {
                APR.Draw(gametime, g, new Vector2(Position.X + 20, Position.Y - 10), flip);
            }
            else
            {
                APR.Draw(gametime, g, new Vector2(Position.X - 20, Position.Y - 10), flip);
            }
        }
コード例 #3
0
 public void Draw(GameTime gametime, SpriteBatch g)
 {
     APJoueur.Draw(gametime, g, Position, flip);
     if (Vie != null)
     {
         Vie.Draw(g);
     }
     foreach (FireBall F in FireBalls)
     {
         F.Draw(gametime, g);
     }
     foreach (Ball B in Balles)
     {
         B.Draw(gametime, g);
     }
     foreach (Cartouche C in Cartouches)
     {
         C.Draw(gametime, g);
     }
     foreach (Laser L in Lasers)
     {
         L.Draw(gametime, g);
     }
 }