Revision 4592,
1.2 KB
checked in by dezhidki, 10 years ago
(diff) |
Lisätty toimiva sotilas. Korjattu OrderMove:n epätarkkuuksia. Lisätty AStariin muuttuja, jolla voi jättää loppupisteen läpipääsemättömyyden huomioimatta.
|
Line | |
---|
1 | using Microsoft.Xna.Framework.Content; |
---|
2 | using Microsoft.Xna.Framework.Graphics; |
---|
3 | |
---|
4 | namespace 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 | public static int SPRITESHEET_WARRIOR { 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 | SPRITESHEET_ICONS = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("misc/icons"), 16, 16)); |
---|
18 | SPRITESHEET_WOODCUTTER = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("mobs/woodcutter"), 32, 32)); |
---|
19 | SPRITESHEET_WARRIOR = renderer.RegisterSpriteSheet(new SpriteSheet(cm.Load<Texture2D>("mobs/warrior"), 32, 32)); |
---|
20 | LEVEL_TEST = cm.Load<Texture2D>("levels/levelTest"); |
---|
21 | } |
---|
22 | } |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.