protected override void Update(GameTime gameTime)
        {
            if (Controller1.Buttons.X == ButtonState.Pressed)
            {
                character = new GameSpriteSlowDecorator(character);
            }
            else if (Controller1.Buttons.B == ButtonState.Pressed)
            {
                character = new GameSpriteFastDecorator(character);
            }

            character.Move(Controller1);

            base.Update(gameTime);
        }
Exemple #2
0
        protected override void Update(GameTime gameTime)
        {
            if (Controller1.Buttons.A == ButtonState.Pressed)
            {
                character = this.gameSpriteFactory.Create <Foulu>();
            }
            else if (Controller1.Buttons.B == ButtonState.Pressed)
            {
                character = this.gameSpriteFactory.Create <Zero>();
            }

            character.Move(Controller1);

            base.Update(gameTime);
        }
Exemple #3
0
        protected override void Update(GameTime gameTime)
        {
            character.Move(Controller1);

            base.Update(gameTime);
        }