So I have been re-working a project that has been on the back-burner since November and decided to go with an Entity Framework for a nice and maintainable code.
The entity system I am using is Ashley and it is optional when creating a LibGDX project. Just as well, as I was going to go with Artemis until I seen this :P.
I am at the stage now where I want to take input and process the player with it, however I am not quite sure how to do this, from a design perspective.
I have a system for the player, which will handle the management of states by swapping components about (as I read, this is the best way to handle states). I am not quite sure how do handle input.
I could easily add a bunch of if blocks and constantly poll input, however the input will be received using the UI (Scene2D).
What is the best approach to this? Any ideas?