private void Init() { gamePictureBox.BackColor = Color.Black; _gameData = _gameStateInitializer.InitializeGameData(); _mouse = GameStateInit.InitializeMouse(); _keyboard = GameStateInit.InitializeKeyboard(); InitializeTimer(); }
private void GameWindow_KeyPress(object sender, KeyPressEventArgs e) { _gameData = Keyboard.ProcessKeyPress(_gameData, e); }