From Scalable Game Design wiki
Jump to navigation Jump to search

Sometimes a whole collection of agents need to perform the same sequence of actions. For example, the whole fleet of space ships in the Space Invaders gamelet shown in


need to move in unison, to the left, right, and down. The recommended approach to this problem is to create a master agent (the mother ship shown at the top of the figure, in the Space Invaders example), and make the master agent broadcast messages that indicate the required actions. These messages will be sent to all agents of a certain kind, in our case the spaceship agents.

Games/Simulations that use this pattern