Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Program.Game = new MomolikeGame())
     {
         Game.Run();
     }
 }
Пример #2
0
        public InputHandler(MomolikeGame game)
            : base(game)
        {
            _keyboardState = Keyboard.GetState();

            _gamePadStates = new GamePadState[Enum.GetValues(typeof(PlayerIndex)).Length];
            foreach (PlayerIndex index in Enum.GetValues(typeof(PlayerIndex)))
                _gamePadStates[(int)index] = GamePad.GetState(index);
        }