Just a quick one really, as I can't find anything definative.
Started developing in Java, to learn and take on a bit of Game Dev. Have a PHP background, and I'm a massive sucker for best practices, etc.
Basically in my
Game::update() method I can handle keyboard input and move the
Player, this is what I want to avoid.
So should my
Keyboard class have a dependancy of
Player, or the other way around?
Also would the
Keyboard class handle the management of
Player states or would the
Player class handle that itself.
Should I look into introducing an Event System to the Game Engine?
This is a very broad question and down to opinion. I'd just rather do things the right way, than end up with a steaming pile of mess.