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.
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.