protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += ObserverGame_CustomDrawing;

            fouLu = new Foulu(Content.Load <Texture2D>("Foulu"), new Vector2(40, 100));
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += VisitorGame_CustomDrawing;

            character = new Foulu(Content);
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += SingletonGame_CustomDrawing;

            character = Foulu.Instance;
            //character = new Foulu(Content);
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += MementoGame_CustomDrawing;

            this.character = new Foulu(Content);
            this.recorder  = new FouluRecorder(character);
        }
        public void Move(Foulu character, GamePadState gamePadState)
        {
            if (character.MoveStrategy.GetType() != typeof(RunStrategy))
            {
                character.MoveStrategy = new RunStrategy();
            }

            character.Move(gamePadState);
        }
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += MediatorGame_CustomDrawing;

            character  = new Foulu(Content, mediator);
            character2 = new Foulu(Content, mediator);
            character2.SpritePosition = new Vector2(0, 60);
        }
Esempio n. 7
0
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += PrototypeGame_CustomDrawing;

            character  = new Foulu(Content);
            character2 = character.Clone();
            character2.SpritePosition += new Vector2(0, 60);
        }
Esempio n. 8
0
        protected override void LoadContent()
        {
            base.LoadContent();

            this.CustomDrawing += ObserverGame_CustomDrawing;

            fouLu = new Foulu(Content.Load <Texture2D>("Foulu"), new Vector2(40, 100));
            zero  = new ZeroAdapter(new Zero(), Content.Load <Texture2D>("Zero"), new Vector2(40, 150));

            fouLu.Animation = new Animation(250, 48, 48, 5, offsetY: 48);
            zero.Animation  = new Animation(250, 48, 48, 9);
        }
Esempio n. 9
0
        protected override void Update(GameTime gameTime)
        {
            if (character == null)
            {
                character = proxy.Create(Content, gameTime);
            }

            if (character != null)
            {
                character.Move(Controller1);

                base.Update(gameTime);
            }
        }