Esempio n. 1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.Black);
            // TODO: Add your drawing code here

            spriteBatch.Begin(SpriteBlendMode.AlphaBlend);
            //Display All The Compenent
            //Affiche toutes les composantes
            bg.Draw();
            floor.Draw();
            player.Draw();
            anim.Draw();

            spriteBatch.End();

            base.Draw(gameTime);
        }
Esempio n. 2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            graphics.GraphicsDevice.Clear(Color.CornflowerBlue);

            // TODO: Add your drawing code here

            //Begin Drawing With AlphaBlend Effect
            //Commencer le dessin l'effect aplhablend(tranparence)
            spriteBatch.Begin(SpriteBlendMode.AlphaBlend);

            //Draw The Images
            //Dessiner Les Images
            light.Draw();
            block1.Draw();
            block2.Draw();
            boy.Draw();
            girl.Draw();

            //End Drawing
            //Fin Du Dessin
            spriteBatch.End();

            base.Draw(gameTime);
        }