Example #1
0
 public void SetAnimation(StandardSpriteAnimations animation,
                          StandardSpriteOrientations orientation,
                          long gameMS)
 {
     AnimationStartTimeMS = gameMS;
     this.AnimationName   = SpriteHelper.GetAnimationName(animation, orientation);
 }
Example #2
0
 public void addAnimation(StandardSpriteAnimations animation,
                          StandardSpriteOrientations orientation,
                          Point2D movement,
                          params int[] frames)
 {
     addAnimation(SpriteHelper.GetAnimationName(animation, orientation), movement, frames);
 }
Example #3
0
 public static string GetAnimationName(StandardSpriteAnimations animation, StandardSpriteOrientations orientation)
 {
     return((Enum.GetName(typeof(StandardSpriteAnimations), animation) +
             "_" +
             Enum.GetName(typeof(StandardSpriteOrientations), orientation)).ToLower());
 }