-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfed85a
commit dc53fa2
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Entities Tutorial: Firefighters | ||
|
||
A fire spreads across a field, and bots form bucket brigade lines to douse the fire. | ||
|
||
![](Common/firefighters.png) | ||
|
||
# Step 1: Spawning | ||
|
||
This step sets up the core data and spawns the field, the bots, the ponds of water around the field, and the buckets on the field. | ||
|
||
# Step 2: Fire simulation | ||
|
||
This step adds code to spread the fire. Three solutions are demonstrated: | ||
|
||
- A single-threaded solution running on the main thread. | ||
- A single-threaded solution running in a job. | ||
- A parallel-threaded solution running in a job. | ||
|
||
# Step 3: Bot behaviour | ||
|
||
This step adds behiour to the bots, who are organized into teams. Each team forms a line between a pond and the closest fire. A bucket is filled at the pond and then passed up the line. |