ashish2199 / Aidos

A beginner friendly project with aim of creating our own version of Bomberman.
GNU General Public License v3.0
41 stars 27 forks source link

Added an ArrayList to read input from #36

Closed ItsStolas closed 6 years ago

ItsStolas commented 6 years ago

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.

ashish2199 commented 6 years ago

Merged.