예제 #1
0
파일: Actor.cs 프로젝트: atarng/JAMMM
        protected void changeAnimation(Animation newAnimation)
        {
            if (currentAnimation != null)
                currentAnimation.stop();

            newAnimation.stop();

            currentAnimation = newAnimation;

            currentAnimation.play();
        }
예제 #2
0
파일: Fish.cs 프로젝트: atarng/JAMMM
 public override void loadContent()
 {
     moveAnimation = new Animation((Actor)this, AnimationType.Dash,
         SpriteManager.getTexture(Game1.FISH_SWIM), 4, true, 0.1f);
     deathAnimation = new Animation((Actor)this, AnimationType.Death,
         SpriteManager.getTexture(Game1.FISH_DEATH), 8, false, 0.1f);
 }