Beispiel #1
0
 public static void Load()
 {
     NPC = LoadTexture("npc.png");
     Monster = LoadTexture("monster.png");
     Ground = LoadTexture("ground.png");
     Button = LoadTexture("button.png");
     MonsterFace = LoadTexture("monsterface.png");
     Frame = LoadTexture("frame.png");
     Crate16x16 = LoadTexture("crate16x16.png");
     Crate32x32 = LoadTexture("crate32x32.png");
     Crate64x64 = LoadTexture("crate64x64.png");
     Table = LoadTexture("table.png");
     ComputerDesk = LoadTexture("computer_desk.png");
     CompanionCube = LoadTexture("companion_cube.png");
     Key = LoadTexture("key.png");
     Door = LoadTexture("door.png");
     TrapDoor = LoadTexture("trapdoor.png");
     Chest = LoadTexture("chest.png");
     Wall = LoadTexture("wall.png");
     WallCorner = LoadTexture("wallcorner.png");
     DeadMonster  = LoadTexture("deadmonster.png");
     DeadNPC = LoadTexture("deadnpc.png");
 }
Beispiel #2
0
 public SpriteSheet(Texture texture, int width, int height)
 {
     Size = new Vector2(width, height);
     Texture = texture;
 }
Beispiel #3
0
 public SubTexture(Texture texture, float x, float y, float width, float height)
 {
     Texture = texture;
     SubRegion = new RectangleF(x, y, width, height);
 }