June 2021
Beginner
344 pages
8h 9m
English
In this chapter, you extended the ECS system to allow monsters to move. You implemented a turn-based game by tracking current turn state, and dividing the System scheduler into multiple parts. You also moved beyond directly writing to the game state by implementing messages—indicating intent—so that later systems can process them. Using an intent-based messaging system removed duplicate code, reduced dependencies between systems, and grants future flexibility. In the next chapter, you’ll add another intent—the intent to attack (or be attacked by) a monster.
Read now
Unlock full access