コード例 #1
0
        private void Init()
        {
            gamePictureBox.BackColor = Color.Black;

            _gameData = _gameStateInitializer.InitializeGameData();
            _mouse    = GameStateInit.InitializeMouse();
            _keyboard = GameStateInit.InitializeKeyboard();

            InitializeTimer();
        }
コード例 #2
0
 private void GameWindow_KeyPress(object sender, KeyPressEventArgs e)
 {
     _gameData = Keyboard.ProcessKeyPress(_gameData, e);
 }