Esempio n. 1
0
        // Fonction qui charge les ressources, elle se lance toute seule après Initialize() au début du jeu
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);

            map.LoadContent(Content);
            foreach (Entity e in entities)
            {
                e.LoadContent(Content);
            }
            font            = Content.Load <SpriteFont>("text");
            gameoverTexture = Content.Load <Texture2D>("gameover");
        }