I should keep a comment list of all methods before the first one starts. I can find them easier that way. |
All the enemies have similar behavior methods organized in the same way. The AimAtPlayer() method is always after the NearPlayer() method and before the Knockback() method. Over time I'm getting better at writing clean code because I'm learning what my needs as a designer are. It'll be interesting to see how my way of thinking changes when I switch to turn-based AI code next year.
No comments:
Post a Comment