Exemplo n.º 1
0
 public void Stop()
 {
     walkTexture.Stop();
     currentTexture = walkTexture;
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public void Appear()
 {
     appearTexture.Reset();
     appearTexture.Play();
     currentTexture = appearTexture;
 }
Exemplo n.º 4
0
 public void Walk()
 {
     walkTexture.Reset();
     walkTexture.Play(1);
     currentTexture = walkTexture;
 }
Exemplo n.º 5
0
 public void Transform()
 {
     vanishTexture.Reset();
     vanishTexture.Play();
     currentTexture = vanishTexture;
 }
Exemplo n.º 6
0
 public void LoadContent()
 {
     arrowTexture = new AnimatedTexture(Content, "arrow", 2, 0.4f);
     arrowTexture.Play();
 }