← labopen rescue race →

Rescue Race

A game designed by Lily, who wrote down how it goes on two pages (her words, the spelling tidied):

> You will have a boat, and there are little people in tiny boats. There will be different colours of the tiny boats > with the people inside. You have to steer the boat and try to go near enough, and then when you are near enough you > will see them coming on to your boat. Try to get as many as you can and reach the finish line. > > There will be other boats in the sea, and when you get to the finish line the winner will be the one that rescued the > most people. There are five of the big boats (the players), and there will be a 1st place, a 2nd place, a 3rd place, > a 4th and a 5th place.

That's the game, rule for rule. Everything below is how each of them is made to happen.

Playing

TouchKeys
choose your boattap one of the five
how good the others areeasy, medium or hard
gothe big buttonenter or space
steerhold your finger on the sea where you want to gothe arrow keys (up to go, down to slow)

On the screen:

The finish:

At the end, 1st to 5th, as Lily's rule has it:

The other boats

Each of the game's four boats:

How quick and how sharp they are is the level:

On easy and medium they also keep with you: well ahead of you they ease off a little, and behind you they push a little, so there's always a race going on round you.

A child at the wheel, simulated (steering for the nearest waiting boat, a second or so to react), wins about three races in four on easy, comes 2nd or 3rd on medium, and mostly 4th or 5th on hard.

The sea

Each sea comes from a seed (shown on the line-up, and kept in the address as ?seed=). It's a channel of open water running north between two coasts:

The land and the seabed are one heightfield: deep water, shallows by every shore, a beach, then grass rising inland. The water is drawn over it:

How it's made

client/rescue/sea.tsthe sea from a seed: the heightfield, islands, tiny boats and their people, what stands about, the waves
client/rescue/race.tsthe rules: steering, running aground, bumping, near enough, the jumps, the other boats, the last call, the places
client/rescue/mesh.tsthe things, as triangles: the boats, the people, palms, trees, houses, lighthouses, the pier
client/rescue/render.tsthe drawing (WebGL2): the land, the things (instanced: arms that swing, flags that flutter, palms that sway), the water, the marks on it
client/rescue/fx.tswakes, ripples, splashes, sparkles, shadows, the near-enough rings, the finish band
client/rescue/sound.tsthe sounds, all made in the page: the horn, the count of three, a hop for each person landing (higher for each), the bell, a tune for your place
client/rescue/main.tsthe page: the camera, your hand on the wheel, where everyone is each frame, what's said on the screen

The sea and the rules are pure, and tested without a page (node cells/lab/devtools/rescue.test.mjs):

The page is played by hand in a browser (node cells/lab/devtools/rescue-smoke.mjs): choose, go, a finger held, the arrow keys, the end. The pictures here are made by node cells/lab/views.mjs rescue.

Addresses:

Every picture (8)

The race

The rescue

The finish