Day 5
Done today
- A single enemy, aiming (but not shooting) at the player and following them around.
Controllers
In typical component-based thinking, I moved the controlling of the war machines outside the Warmachine class, and into a dedicated Controller one. The player input was moved into a specialized controller for that. Enemy behaviors will also be coded into such controllers. For now, I only have one that moves towards the player, the tries to stay within a specified distance (min/max).
What’s next?
Tomorrow, I plan to work on the following:
- Having the enemy shoot at the player.
- New projectiles/cannons.