예제 #1
0
        public MotherSprite Create(Machine machine, PlayPage page)
        {
            this.machine = machine;
            this.page    = page;

            tiles        = AssetStore.Tiles;
            flyAnimator  = AssetStore.CreateMotherFlyAnimation();
            openAnimator = AssetStore.CreateMotherOpenAnimation();
            tiredMap     = AssetStore.MotherTired;

            healthThresold1 = (int)((double)HEALTH * 0.33d);
            healthThresold2 = (int)((double)HEALTH * 0.66d);

            openAnimator.Stop();

            this.Width  = openAnimator.Width + (2 * 8); // on ajoute les ailes qui dépassent
            this.Height = openAnimator.Height;

            this.InitializeCollision(3, 8, 16 + 3, 3);

            return(this);
        }