I think it will fit nicely without update() idea. Basically, we add the input to an ArrayList, then it keeps all responsibilities and dependencies isolated into each entity. The entities can then just read from the Array list to see what buttons are being pressed, then act on them in their update() functions. This should also make movement much smoother.
What do you think about this guys?
I got the idea from https://gamedevelopment.tutsplus.com/tutorials/introduction-to-javafx-for-game-development--cms-23835
I think it will fit nicely without update() idea. Basically, we add the input to an ArrayList, then it keeps all responsibilities and dependencies isolated into each entity. The entities can then just read from the Array list to see what buttons are being pressed, then act on them in their update() functions. This should also make movement much smoother.