logo
By Lawrence

15 minutes

Pure Pursuit

The lab

This course opens up the drivers and the spawner behind the traffic in Endless Rampage. It grants no credits. You own both series, Endless Rampage Highway and Endless Rampage Combat, so you already own every component it uses.

Every lesson runs in one lab: Endless Rampage Combat's scene as it stood at the start of lesson 2.7. It has civilians, enemies and police, and no director to end the run. Series owners download it free:

Download the lab
bjs download scene EndlessRampage-lesson-7 --all

Copy public/scenes/EndlessRampage-lesson-7/scene.json over src/scenes/endlessrampage.json and reload. Open the tuning panel with the backquote key and press Reset, so every slider holds the scene's value.

Lessons 1 to 3 measure civilians, so send the attackers home for now. Give the Traffic entity's HighwaySpawner two empty lists:

src/scenes/endlessrampage.json
"Traffic": {
  "components": {
    "HighwaySpawner": {
      …
      "police": [],
      "enemies": []
    }
  }
},

Lesson 4 takes both lines out again.

Continue reading

Unlock the Full Course

Every lesson, the runnable examples, and the finished build — yours to keep.

$5one-time

Was this page helpful?

We read every note — tell us what's working and what isn't.

↑↓ NavigateEnter SelectEsc CloseCtrl+K Open Search