Exemplo n.º 1
0
 public AnimationDescriptor(SpriteSheet spriteSheet, float interval, params int[] frames)
 {
     this.spriteSheet = spriteSheet;
     this.frames = frames ?? GenerateFrames(spriteSheet.TilesX * spriteSheet.TilesY);
     this.interval = interval;
 }
Exemplo n.º 2
0
 public static void Load()
 {
     NPC = new SpriteSheet(Textures.NPC, 16, 14);
     Monster = new SpriteSheet(Textures.Monster, 16, 14);
 }
Exemplo n.º 3
0
 public AnimationDescriptor(SpriteSheet spriteSheet, float interval, params int[] frames)
 {
     this.spriteSheet = spriteSheet;
     this.frames      = frames ?? GenerateFrames(spriteSheet.TilesX * spriteSheet.TilesY);
     this.interval    = interval;
 }