Esempio n. 1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            soldier = new soldiers(Content.Load <Texture2D>("GreenSlime"), Content.Load <Texture2D>("MagicMan"), Content.Load <SoundEffect>("Explosion"));
            effects = new Effects(Content.Load <Texture2D>("svart"));
            menu    = new Menu(Content.Load <Texture2D>("svart"), Content.Load <SpriteFont>("basic"), Content.Load <SoundEffect>("Select"));
            // TODO: use this.Content to load your game content here
        }
Esempio n. 2
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            soldier = new soldiers(Content.Load <Texture2D>("Devilman"), Content.Load <Texture2D>("Swordsman"), Content.Load <SoundEffect>("Explosion"));
            effects = new Effects(Content.Load <Texture2D>("svart"));
            menu    = new Menu(Content.Load <Texture2D>("Button"), Content.Load <SpriteFont>("basic"), Content.Load <SoundEffect>("Select"));
            road    = new Road(Content.Load <Texture2D>("svart"));
            map     = new Map(Content.Load <Texture2D>("Castle"), Content.Load <Texture2D>("Tavern"), Content.Load <Texture2D>("svart"), Content.Load <SpriteFont>("basic"));
            clouds  = new Clouds(Content.Load <Texture2D>("Cloud"));
            // TODO: use this.Content to load your game content here
        }