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