VRushLP / RigorMortisGame

A game made for TCSS491 Computational Worlds, Winter 2016
2 stars 0 forks source link

Agent refactor #128

Closed tjsg1992 closed 7 years ago

tjsg1992 commented 7 years ago

Split up the enemy.js script and reorganized that chunk of the codebase.

Created animation-set.js and migrated animation code from most enemies and knight.js into here. I will probably move all animation code into here in the future, but it wasn't very high on my todo list.

abstract-agent.js has been added and a couple of utility functions from the old enemy.js have been moved into here. Unfortunately I have not yet had time to do everything with abstract-agent.js that I wanted to (e.g. consolidate and migrate basic directional movements, falling/jumping code, etc). However, the re-organizational step is completed, so I'm opening the pull request now to minimize merge conflicts in the future.