Example #1
0
 public void Stop()
 {
     walkTexture.Stop();
     currentTexture = walkTexture;
 }
Example #2
0
        public void LoadContent()
        {
            walkTexture = new AnimatedTexture(Content, assetName("walk"), WALK_FRAME, WALK_TIME_PER_FRAME);
            vanishTexture = new AnimatedTexture(Content, assetName("vanish"), VANISH_FRAME, VANISH_TIME_PER_FRAME);
            appearTexture = new AnimatedTexture(Content, assetName("appear"), VANISH_FRAME, VANISH_TIME_PER_FRAME);
            currentTexture = walkTexture;

            vanishTexture.LoopEnd += onTransformEnd;
            appearTexture.LoopEnd += onAppearEnd;
        }
Example #3
0
 public void Appear()
 {
     appearTexture.Reset();
     appearTexture.Play();
     currentTexture = appearTexture;
 }
Example #4
0
 public void Walk()
 {
     walkTexture.Reset();
     walkTexture.Play(1);
     currentTexture = walkTexture;
 }
Example #5
0
 public void Transform()
 {
     vanishTexture.Reset();
     vanishTexture.Play();
     currentTexture = vanishTexture;
 }
Example #6
0
 public void LoadContent()
 {
     arrowTexture = new AnimatedTexture(Content, "arrow", 2, 0.4f);
     arrowTexture.Play();
 }