Charles Bee

RANGE

RANGE is a flight demo set over Jersey in wet weather at dusk. You take off from Jersey Airport in a Eurofighter Typhoon, fly the coast, use the gun and laser-guided Paveway bombs on the practice range, chase a MiG with an infrared missile and bring the aircraft home. A Westland Wyvern S.4, with sixteen RP-3 rockets and a torpedo, is the alternative aircraft. The practice traffic, a MiG-15, a Tu-95 and a Mi-24 on scripted loops, respawns; there are also range targets and a ship.

Flying it

On a desktop the aircraft follows a circle at the mouse pointer, while an automatic instructor keeps it from stalling. The keyboard also works pitch, roll, throttle, landing gear and airbrake directly. On a phone the same address opens a tilt-to-fly version: hold the phone sideways and tilt it like a wheel to turn, pull the top edge towards you to climb, and use a throttle lever on one edge and three keys for the weapons. Gear, brakes and the laser are automatic there. The head-up display is metric and confirms each kill. The desktop build also downloads as a zip that runs from disk in any browser with hardware acceleration.

How it is built

Each version is a single HTML file with no external assets: about 29.7 MB for desktop and 10.9 MB for phone. three.js r160 is the only runtime dependency. A Python build script packages each version, checks it against a size limit and rejects any reference to an external file.

The flight model is a rigid-body simulation with aerodynamic moments, a gain-scheduled fly-by-wire loop and three wheel contacts. The mouse-aim instructor steers the aircraft's direction of travel (its velocity vector) to the aim point, rather than just pointing the nose there, and works within tighter limits than the flight control system.

Every 3D model is made in Blender, in the game's own coordinate frame, then exported and packed into a quantised binary library that the page loads. The textures were generated from recorded prompts, with procedural stand-ins written for any that are missing.

The desktop file is over Cloudflare's 25 MiB limit for a single file, so range.charlesbee.org is a Cloudflare Worker that fetches it from where it is published and streams it to the browser. A test script covers the physics, the instructor, weapon engagement, the touch controls and the mesh library.

The island

Jersey is built from open data. The terrain comes from Mapzen Terrain Tiles (EU-DEM, SRTM, GMTED2010 and ETOPO1), drawn at 85 per cent of its true horizontal scale, with the airfield and the range flattened for play. Roads, buildings, land cover, piers and the harbour come from OpenStreetMap, with building heights estimated where the data gives none. The airport's position and runway bearing follow the NATS aerodrome chart; the runway length and airfield buildings are adapted for the game.

The phone controls

The phone controls are one throttle panel and three weapon buttons, each with a dark translucent background that leaves the ground visible. A button lights only while its system is active, and the controls are checked across 27 test cases, with text contrast measured in every frame.

Fly it

RANGE is at range.charlesbee.org. It is best on a desktop with a mouse and keyboard; phones get the tilt version at the same address. Map data © OpenStreetMap contributors.