← Experiments

Nightshade

A small murder-mystery game for the browser. These are the visual tests so far.

FormatBrowser game
RoleStory, motion, art direction
Built withJavaScript, WebGL
StatusIn progress
Current scenes and title pages, running live. Click for the next one.Title pages ↗Open full screen ↗

About

A botanical illustrator stays at a country house to draw an orchid that blooms one night a year. Someone dies during the night. The player looks around, talks to the household and works out what happened by morning.

Visual constraints: no characters on screen, no vector shapes, and warm light only from fires and lamps.

Process

01

Pixel drafts

Low-res scenes with a limited palette and ordered dithering. Too retro.

Six pixel-art scene drafts: arched windows, a lantern in the forest, a greenhouse at dawn
02

Four treatments

One scene rendered four ways: fine grain, risograph, cinematic and hybrid. I went with the risograph.

The same forest scene in four treatments: fine grain, risograph, cinematic and hybrid
03

Riso prints

Three colours: dark navy, blue and orange. Orange only for light sources.

Six risograph-style night scenes in blue and orange
04

Generated references

The code-only drawings lacked detail. Generated images had detail but looked generic and couldn't be animated. I used them as references and rebuilt each scene in code.

A generated etching of a woman kneeling by a fire in the forest
First generated test
A generated pixel-art image of a woman holding a glove over a campfire
Second generated test

From reference to code

Rooms are built as simple 3D models so the moonlight and shadows line up with the windows. Left: reference. Right: in game.

Generated reference: a dark reading room with arched windows and blood on the rug
Reference
The reading room in code: arched windows with tracery, hanging ferns, blood in the moonlight
In game
Generated reference: a dark staircase with an arched moonlit window and lamplight under a door
Reference
The stairs in code: moonlight striping the steps through the balusters
In game

How it works

BakeLighting and shadows are calculated once and saved as an image per scene.
AnimateFire, lamps and clouds are animated per frame on the GPU.
ColourThe result is reduced to a blue and an orange palette with dithering.
LoadUpcoming scenes are preloaded. Scenes change with a dither transition.
12scenes
~10 msto load a scene
60 fpsin the browser
2.4 MBall scenes