Skip to content

Commit

Permalink
added Firefighters tutorial README
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWill-Unity committed Feb 20, 2024
1 parent dfed85a commit dc53fa2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions EntitiesSamples/Assets/Tutorials/Firefighters/README.md
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.

0 comments on commit dc53fa2

Please sign in to comment.