Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Xna.Framework.Audio;
- using Microsoft.Xna.Framework.Content;
- using Microsoft.Xna.Framework.Graphics;
- using System.Collections.Generic;
- namespace Gamecodeur_JAM_1
- {
- public class Resources
- {
- public static Dictionary<string, Texture2D> Images;
- public static Dictionary<string, SoundEffect> Sounds;
- public static void LoadImage(ContentManager content)
- {
- Images = new Dictionary<string, Texture2D>();
- List<string> image = new List<string>()
- {
- "player/playerWalk",
- "player/playerAttack",
- "player/playerQueen"
- };
- foreach (string img in image)
- {
- Images.Add(img, content.Load<Texture2D>("res/graphics/" + img));
- }
- }
- public static void LoadSound(ContentManager content)
- {
- Sounds = new Dictionary<string, SoundEffect>();
- List<string> sound = new List<string>()
- {
- };
- foreach (string sfx in sound)
- {
- Sounds.Add(sfx, content.Load<SoundEffect>("res/sounds/" + sfx));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement