private void LoadAssets() { // load all of the textures here for now // eventually we will move them into a resource file // and load them from there // TEXTURE PACKER _contentManager.AddSpriteSheet("Guns", "Guns"); // CONTROLLER DEBUG _contentManager.AddSpriteSheetJB(identifier: "controllerDebug", contentLocation: "controllerDebug/Xbox360PixelPadtrans", rows: 4, columns: 9); _contentManager.AddFont("Arial", Content.Load <SpriteFont>("fonts/Arial")); _contentManager.AddFont("ArialBig", Content.Load <SpriteFont>("fonts/ArialBig")); _contentManager.AddFont("Impact", Content.Load <SpriteFont>("fonts/Impact")); _contentManager.AddFont("ImpactBig", Content.Load <SpriteFont>("fonts/ImpactBig")); // PLAYER // TODO: read this data from a file _contentManager.AddSpriteSheetJB(identifier: "female_walkcycle", contentLocation: "female_walkcycle", rows: 4, columns: 9); _contentManager.AddAnimation(identifier: "female_walk_up", spriteSheetIdentifier: "female_walkcycle", startFrame: 1, frameCount: 9, framesPerSecond: FPS.TEN); _contentManager.AddAnimation(identifier: "female_walk_down", spriteSheetIdentifier: "female_walkcycle", startFrame: 19, frameCount: 9, framesPerSecond: FPS.TEN); _contentManager.AddAnimation(identifier: "female_walk_left", spriteSheetIdentifier: "female_walkcycle", startFrame: 10, frameCount: 9, framesPerSecond: FPS.TEN); _contentManager.AddAnimation(identifier: "female_walk_right", spriteSheetIdentifier: "female_walkcycle", startFrame: 28, frameCount: 9, framesPerSecond: FPS.TEN); _contentManager.AddAnimatedSprite("female", new AnimatedSprite()); _contentManager.GetAnimatedSprite("female").AddAnimation(_contentManager.GetAnimation("female_walk_up")); _contentManager.GetAnimatedSprite("female").AddAnimation(_contentManager.GetAnimation("female_walk_down")); _contentManager.GetAnimatedSprite("female").AddAnimation(_contentManager.GetAnimation("female_walk_left")); _contentManager.GetAnimatedSprite("female").AddAnimation(_contentManager.GetAnimation("female_walk_right")); // Weapon audio _contentManager.AddSoundEffect("smg/shot1", "soundEffects/weapons/smg/snd_SHOT_01.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/shot2", "soundEffects/weapons/smg/snd_SHOT_02.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/shot3", "soundEffects/weapons/smg/snd_SHOT_03.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/shot4", "soundEffects/weapons/smg/snd_SHOT_04.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/shot5", "soundEffects/weapons/smg/snd_SHOT_05.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/shot6", "soundEffects/weapons/smg/snd_SHOT_06.SoundNodeWave_00000122"); _contentManager.AddSoundEffect("smg/dryfire1", "soundEffects/weapons/smg/snd_DRYFIRE_01.SoundNodeWave_00000125"); _contentManager.AddSoundEffect("smg/dryfire2", "soundEffects/weapons/smg/snd_DRYFIRE_02.SoundNodeWave_00000125"); _contentManager.AddSoundEffect("smg/eject1", "soundEffects/weapons/smg/snd_CLIP_EJECT_01.SoundNodeWave_00000128"); _contentManager.AddSoundEffect("smg/eject2", "soundEffects/weapons/smg/snd_CLIP_EJECT_02.SoundNodeWave_00000128"); _contentManager.AddSoundEffect("smg/eject3", "soundEffects/weapons/smg/snd_CLIP_EJECT_03.SoundNodeWave_00000128"); _contentManager.AddSoundEffect("smg/insert1", "soundEffects/weapons/smg/snd_CLIP_insert_01.SoundNodeWave_00000129"); _contentManager.AddSoundEffect("smg/insert2", "soundEffects/weapons/smg/snd_CLIP_insert_02.SoundNodeWave_00000129"); _contentManager.AddSoundEffect("smg/insert3", "soundEffects/weapons/smg/snd_CLIP_insert_03.SoundNodeWave_00000129"); // PLAYER audio _contentManager.AddSoundEffect("footstep1", "soundEffects/player/footsteps/Footstep_Concrete_Run_01.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep2", "soundEffects/player/footsteps/Footstep_Concrete_Run_02.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep3", "soundEffects/player/footsteps/Footstep_Concrete_Run_03.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep4", "soundEffects/player/footsteps/Footstep_Concrete_Run_04.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep5", "soundEffects/player/footsteps/Footstep_Concrete_Run_05.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep6", "soundEffects/player/footsteps/Footstep_Concrete_Run_06.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep7", "soundEffects/player/footsteps/Footstep_Concrete_Run_07.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep8", "soundEffects/player/footsteps/Footstep_Concrete_Run_08.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep9", "soundEffects/player/footsteps/Footstep_Concrete_Run_09.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep10", "soundEffects/player/footsteps/Footstep_Concrete_Run_10.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep11", "soundEffects/player/footsteps/Footstep_Concrete_Run_11.SoundNodeWave_00000174"); _contentManager.AddSoundEffect("footstep12", "soundEffects/player/footsteps/Footstep_Concrete_Run_12.SoundNodeWave_00000174"); // BULLET _contentManager.AddSpriteSheetJB("bullet", "weapons/bullet", 1, 1); _contentManager.AddAnimation("bullet", "bullet", 1, 1, 1); _contentManager.AddAnimatedSprite("bullet", new AnimatedSprite()); _contentManager.GetAnimatedSprite("bullet").AddAnimation(_contentManager.GetAnimation("bullet")); // INVENTORY _contentManager.AddSoundEffect("buzzer1", "soundEffects/ui/inventory/buzzer1"); _contentManager.AddSoundEffect("Inv_Close", "soundEffects/ui/inventory/Close"); _contentManager.AddSoundEffect("Inv_Open", "soundEffects/ui/inventory/Open"); _contentManager.AddSoundEffect("Equip", "soundEffects/ui/inventory/Inv_Equip"); _contentManager.AddSoundEffect("Inv_Vertical", "soundEffects/ui/inventory/Inv_Vertical"); _contentManager.AddSoundEffect("Inv_Pickup", "soundEffects/ui/inventory/Pickup"); }