Open andrew-peng-144 opened 3 years ago
now, the mobData object has stuff like hp, and which "AI" to use. AI is another kind of object, that has a update method that decides what to do on each frame and does it, and it has high coupling with mobdata... which has high coupling with the component system...
Need a clean controller interface to easily dictate what action an actor should do.
As for the player, either use the same syste, triggered by key inputs, or can just hardcode it with the key inputs.