Exemple #1
0
 public void TickLogic(GameTime gameTime)
 {
     //_host.Log("Tick " + Math.Ceiling(totalMS));
     //_game.Entities.ForEach(e => e.Position.X -= 0.01);
     _inputEngine.HandleInput(_host, _game, gameTime, _graphicsEngine.GetGamePosition);
     _scrollEngine.Scroll(_host, _game);
 }
Exemple #2
0
 public void TickGraphics(GameTime gameTime)
 {
     _graphicsEngine.DrawGraphics(_host, _game, IsDebugEnabled);
 }
Exemple #3
0
        public GameInputState(GameTime gameTime, IList<IGameInputValue> inputValues)
        {
            GameTime = gameTime;

            InputValues = inputValues;
            HasInput = InputValues.Any();
            HasKeyboardInput = InputValues.Any(v => v.Type == InputType.Keyboard);

            if (HasInput)
            {
                var breakdance = true;
            }
        }