Beispiel #1
0
        protected void PichunStateUpdate()
        {
            if (state == State.PICHUN)
            {
                if (time > (int)State.PICHUN)
                {
                    Invincible((int)State.REBIRTH);
                    StateSet(State.REBIRTH);
                    life--;
                    bomb = 3;

                    if (life < 0)
                    {
                        parent.BattleEnd(score);
                    }
                    else
                    {
                        parent.ConvertEnemyBulletToItem(false);
                    }
                }
                if (InputContllorer.IsPush(Keys.X) && bomb > 1)
                {
                    Invincible((int)State.BOMB);
                    StateSet(State.BOMB);
                    bomb -= 2;
                }
            }
        }
Beispiel #2
0
        protected void MoveStateUpdate()
        {
            shiftMove = InputContllorer.IsPress(Keys.LeftShift);

            if (InputContllorer.IsPush(Keys.X) && bomb > 0)
            {
                bomb--;
                Invincible((int)State.BOMB);
                StateSet(State.BOMB);
            }
        }