public void Update(IDeviceInteracionEvent e)
        {
            GameForgeEngine _gamebase = GameForgeEngine.Instance;

            SpriteBatch _spriteBatch = new SpriteBatch(GameForgeEngine.Instance.GraphicsDevice);

            //Point position = Point.Zero;
            //bool button = false;
            //if (e is DeviceInteracionEventMouse)
            //{
            //    position = ((DeviceInteracionEventMouse)e).Position;
            //    button = ((DeviceInteracionEventMouse)e).LeftButtonPressed;
            //}

            //if (e is DeviceInteracionEventTouch)
            //{
            //    position = ((DeviceInteracionEventTouch)e).Position;
            //    button = ((DeviceInteracionEventTouch)e).Pressed;
            //}

            //  Load our spritefont file
            _font = _gamebase.Content.Load <SpriteFont>("font");

            //if (button)
            //{
            //    _spriteBatch.Begin();

            //    _spriteBatch.DrawString(_font, "Coordinates: ", position.ToVector2(), Color.White);

            //    _spriteBatch.End();
            //}
        }
Exemple #2
0
        public GameStatePlayerLose(GameForgeEngine gameBase, IGameState lastGamePlaingState)
        {
            this._gameBase            = gameBase;
            this._lastGamePlaingState = lastGamePlaingState;

            _spriteBatch = new SpriteBatch(GameForgeEngine.Instance.GraphicsDevice);
            _font        = _gameBase.Content.Load <SpriteFont>("font");
        }
Exemple #3
0
 public GameStatePlaying_(GameForgeEngine gameBase)
 {
     this._gameBase    = gameBase;
     this._gameObjects = new List <GameObject>();
     this._battle      = new BattleServer();
 }
Exemple #4
0
 public GameStatePlaying(GameForgeEngine gameBase)
 {
     this._gameBase = gameBase;
     this._battle   = new BattleServer();
 }