silas-hw / SCNGame

Summer game project B)
GNU General Public License v3.0
0 stars 0 forks source link

Figure out animations #2

Closed silas-hw closed 1 month ago

silas-hw commented 1 month ago

Consider animations figured with the latest commit. I think the best approach is to store needed animations in the containing entity that the states can then access. Could even go towards 'type object' sort of things. E.g. for shroom entities, I could define one 'shroom' class that takes in a type object, consisting of the set of animations a shroom needs as well as a movement pattern and damage amount.