Esempio n. 1
0
        public void LoadContent(ContentManager Content)
        {
            AnimationSheet playerSheet = new AnimationSheet();
            playerSheet.Load(Content, "Spritesheets\\players");
            playerAnimations = new AnimatedSprite(playerSheet, "StandDown");
            playerAnimations.SetTexture("player" + (playerIndex + 1));

            footstepSound = Content.Load<SoundEffect>("SFX/footsteps");
            bombPlaceSound = Content.Load<SoundEffect>("SFX/bombplace");
        }
Esempio n. 2
0
        public override void LoadContent(ContentManager Content)
        {
            bgtex.SetTexture(Content.Load<Texture2D>("Images/Menu/bg"));
            winTextFont = Content.Load<SpriteFont>("Fonts/Badaboom");

            AnimationSheet winSheet = new AnimationSheet();
            winSheet.Load(Content, "Spritesheets\\winsprite");

            playerWinAnimation = new AnimatedSprite(winSheet, "Win");
            playerWinAnimation.position = new Vector2(GlobalGameData.windowWidth / 2, GlobalGameData.windowHeight / 2);
            playerWinAnimation.frameRate = 2;

            winSong = Content.Load<Song>("Music/victory");
        }
Esempio n. 3
0
        public void LoadContent(ContentManager Content)
        {
            aesthetics.LoadContent(Content);
            aesthetics.GenerateTiles(solidArea);

            tileObjectManager.LoadContent(Content);

            AnimationSheet playerDeathAnimationSheet = new AnimationSheet();
            playerDeathAnimationSheet.Load(Content, "Spritesheets\\deathsprite");
            playerDeathAnimation = new AnimatedSprite(playerDeathAnimationSheet, "Death");

            playerDeathSound = Content.Load<SoundEffect>("SFX/death");

            for (int i = 0; i < 4; ++i)
            {
                playerDeathSoundInstance[i] = playerDeathSound.CreateInstance();
                playerDeathSoundInstance[i].Volume = GlobalGameData.SFXVolume;
            }

            for (int i = 0; i < 4; ++i)
            {
                players[i].LoadContent(Content);
            }

            fireManager.SetSolidArea(solidArea);
        }
Esempio n. 4
0
        public void LoadContent(ContentManager Content)
        {
            bombTex = Content.Load<Texture2D>("Images/Game/bomb");
            blockTex = Content.Load<Texture2D>("Images/Game/softblocks");
            loaded = true;

            powerupTex = new Texture2D[3];

            powerupTex[0] = Content.Load<Texture2D>("Images/Game/bombup");
            powerupTex[1] = Content.Load<Texture2D>("Images/Game/fireup");
            powerupTex[2] = Content.Load<Texture2D>("Images/Game/speedup");

            AnimationSheet destroySoftblockAnimationSheet = new AnimationSheet();
            destroySoftblockAnimationSheet.Load(Content, "Spritesheets\\softblocks");
            destroySoftblockAnimation = new AnimatedSprite(destroySoftblockAnimationSheet, "Block1");

            powerupSound = Content.Load<SoundEffect>("SFX/powerup");
            bombExplosionSound = Content.Load<SoundEffect>("SFX/bombexplode");

            powerupSoundInstance = powerupSound.CreateInstance();
            bombExplosionSoundInstance = bombExplosionSound.CreateInstance();

            powerupSoundInstance.Volume = GlobalGameData.SFXVolume;
            bombExplosionSoundInstance.Volume = GlobalGameData.SFXVolume;
        }