Esempio n. 1
0
 public Animation(Spritesheet sheet, bool advanceRows, bool repeating, double timeBetweenFrames)
 {
     this.sheet          = sheet;
     this.advanceRows    = advanceRows;
     this.repeating      = repeating;
     TIME_BETWEEN_FRAMES = timeBetweenFrames;
     timeThisFrame       = 0;
 }
Esempio n. 2
0
 public GameObjectDrawable()
 {
     tex       = new Spritesheet(DrawingHelper.PixelTexture, 1, 1);
     drawColor = Color.White;
 }