Exemplo n.º 1
0
        public OpaSprite(Machine machine, PlayPage page)
        {
            this.machine = machine;

            this.page = page;

            pathDeathStart.Initialize(EasingFunctions.CircularEaseOut, EasingFunctions.Linear, 40, 1, 1, 1, 100);

            frameDeathStarThresold0 = (int)((double)pathDeathStart.MaximumFrame * 0.4d);
            frameDeathStarThresold1 = (int)((double)pathDeathStart.MaximumFrame * 0.8d);

            tiles          = AssetStore.Tiles;
            flightAnimator = AssetStore.OpaFlightAnimator;
            walkAnimator   = AssetStore.OpaWalkAnimator;

            deathStarAnimator = AssetStore.CreateDeathStartAnimation();
            deathStarAnimator.AnimationType = AnimationTypes.Manual;

            isOpaHorizontalFlipped = true;

            Initialize();
        }