source: 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/Graphics/Resources.cs @ 4550

Revision 4550, 1001 bytes checked in by dezhidki, 7 years ago (diff)

Talletus.

Line 
1using Microsoft.Xna.Framework.Content;
2using Microsoft.Xna.Framework.Graphics;
3
4namespace CastleMaster.Graphics
5{
6    public static class Resources
7    {
8        public static int SPRITESHEET_TILES { get; private set; }
9        public static int SPRITESHEET_ICONS { get; private set; }
10        public static Texture2D LEVEL_TEST { get; private set; }
11        public static int SPRITESHEET_WOODCUTTER { get; private set; }
12
13        public static void LoadResources(ContentManager cm, RenderHelper renderer)
14        {
15            SPRITESHEET_TILES = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("tiles/tilesheet"), 32, 32));
16            SPRITESHEET_ICONS = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("misc/icons"), 16, 16));
17            SPRITESHEET_WOODCUTTER = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("mobs/woodcutter"), 32, 32));
18            LEVEL_TEST = cm.Load<Texture2D>("levels/levelTest");
19        }
20    }
21}
Note: See TracBrowser for help on using the repository browser.