andrew-peng-144 / js-explore-game

0 stars 0 forks source link

control system for actors #16

Open andrew-peng-144 opened 3 years ago

andrew-peng-144 commented 3 years ago

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.

andrew-peng-144 commented 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...