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