Waves of beetles walk along the path to your hive. Select a bee, then click the field to place it. A bee guards its post, chases the beetles that it sees, and stings them. A killed beetle gives nectar.
The hive waits for the first wave.
Click the field to place a scout. You can place 12 bees.
Each beetle has the rule follow with the points of the path, and stays with its swarm with separation, alignment and a little cohesion. A large beetle is slower, and the number on it is its health.
A bee at its post has the rule arrive to its post. When it sees a beetle, it changes its rules to pursue with the target {group, beetles}: the nearest beetle that it sees.
A bee that touches a beetle finds its process, and sends it a sting. The beetle loses health, and stops at 0. Its process tells the game, and the game gives you nectar.
Each bee that you place is a new gen_boid process in the world. The waves are new processes too: the game starts each beetle at the start of the path.