What DriveMind is
DriveMind is a collection of simulators that run in a web browser: aircraft and helicopters, cars and motorbikes, high-speed trains, buses, ships and submarines, drones, a vehicle workshop and precision sports. There is nothing to install. Each game has its own physics, world and missions, and they share a common layer for sound, graphics quality, sign-in and the phone controller.
The worlds are generated in the browser, and some are built from open map data: the city of Kigali uses real streets and elevation, and the long-haul flights use real airports and terrain. Aircraft, vehicles and liveries are original designs with no real brands or insignia.
Best on a computer
The games are made for a laptop or desktop with a keyboard and mouse, or a gamepad. A phone works best as the controller, not as the screen.The games
Each game opens from the home page and has its own menu, missions and help screen with the full list of keys.
Airline pilot
Turboprops, airliners, helicopters and a supersonic fighter. Fly by the book with ATC, autopilot and ILS, take on storm flights, or fly world routes between real airports, including Kigali International.Car simulator
Cars and motorbikes in two fictional countries and on the real streets of Kigali: free drive, circuit racing, rally stages, drift, bike stunts and championships, taxi shifts, convoys and more. Detailed cars with full cabins, realistic tyres, brakes and driver aids, AUTODRIVE, an anti-collision shield, and a fly mode that turns any car into a drone.Drone missions
A voice co-pilot and missions in thirteen categories, from deliveries and rescues to firefighting and farm irrigation, across several environments and Kigali.Ships & submarines
Tugs, container ships, a cruise ship, yachts, a frigate and an attack submarine on a living ocean with waves, icebergs and islands, with docking, rescue, racing, sonar and voyages between continents at up to 2,000 km/h. Includes a walkable mega ship with decks of activities, maps and quick travel.High-speed rail
Double-deck sets, bullet trains, a maglev and a hypertube capsule across thirteen lines, with cab signalling, voltage changes and sea crossings.Bus simulator
Timetabled lines through towns, mountains and across a border, or seven real Kigali city lines. Passengers, fares, comfort and fuel.Tactical ops
A first-person squad game with ballistics, cover-taking AI and squad orders. Like other weapons content, it is hidden from players by default and shown only if the administrator turns it on.Vehicle garage
Design, 3D-print, assemble, paint and test a vehicle on rigs and a test track, then drive your build in the car simulator.Archery
Recurve, compound and longbow on a target range, an indoor hall and 3D field courses, with arrow drop, wind drift and AI matches.Long range precision
A target-shooting sport from 100 to 1,500 m: steel, paper and gongs, a clicking MRAD scope with turrets, wind reading and breath control.Basketball
Shooting and trick shots on a regulation hoop with real ball physics. Flick with the mouse, or hold your phone like the ball and shoot for real.
Some games and missions can be hidden by the site administrator, so the list you see may be shorter. Saved progress (scores, unlocked missions, money and garage builds) stays in your browser; see Privacy.
Car simulator: autodrive, flight and the shield
Every car in the Car simulator can drive itself, fly like a drone and protect itself from crashes. The flight and shield settings are in Settings, and the AUTO, FLY and SHIELD buttons sit in the top bar.
Realistic driving
- Tyres with load-sensitive grip, weight transfer, suspension with anti-roll bars, open, limited-slip or locked differentials, and brakes that heat up and fade. Each car is tuned to believable figures, for example about 10 s to 100 km/h for the city hatch and 2.6 s for the V12 supercar, and about 32–40 m to stop from 100 km/h.
- ABS, traction control, stability control and launch control can be switched on and off in Settings, along with the brake balance.
- Automatics and electric cars creep at walking pace, and hill-start assist holds the car on a slope.
AUTODRIVE
- Press J (or AUTO). The car keeps its lane, follows speed limits, slows for bends, stops at red lights, gives way at junctions, indicates and keeps a safe gap behind traffic.
- Click the big map (M) to set a destination and the car drives there by the shortest route; without one it cruises along the road.
- − = lower or raise its top speed, and \ changes the following gap. Steering or braking takes over at once; if the car can’t continue it asks you to take over and stops with the hazard lights on.
Fly mode
- Press X (or FLY) at any speed: four fans fold out and the car lifts off, keeping its speed. Press X again to land and drive.
- It flies like the drone: W S A D or the arrows tilt it, Q E turn, Space / Shift climb and descend, H hover, L land, R return to the take-off point and K sport mode. It levels itself, holds its height and holds position when you let go, and copes with wind.
- Nose-down angle (0–35°, default 25°) sets the flying speed: 0° stays level, 25° reaches about 165 km/h, and sport mode about 300 km/h. The fans swivel to push the car up to that speed in about 4 seconds. The maximum tilt for sport mode is set separately.
- In the air, Jis the flight autopilot: it flies along the route line shown on the map (or straight there, if you pick "Fly direct" in Settings), climbs over hills and towers, and lands. Map pins, return home and Go & Return legs follow the route too.
- Landing in traffic.The car never waits in the sky for a lane to clear. If the spot is busy it moves on to a clear one ahead, another lane, a quieter side road or open ground, and on a road with moving traffic it can merge: it flies along at the traffic's speed, drops into a gap and touches down rolling. The HUD and the phone say what it is doing.
- Traffic jams. Under AUTODRIVE, a jam that fills every lane ahead (not a red light or one stopped car) is flown over: the car lifts out of the queue, follows the route past the end of the jam, lands in a free lane or a gap and drives on. Driving yourself, the HUD offers it: press Enter(or Fly over on the phone). Turn it off with "Fly over traffic jams" in Settings.
- Fall protection.Heading for a cliff edge, off a mountain road or a bridge, the car brakes; if it can't stop in time, or it is already falling, the fans catch it and it flies back to the road and lands. Its own Settings switch, on by default.
- Energy. Unlimited energy is on by default, for driving and flying: the tank or battery never runs down. Turn it off in Settings and driving uses fuel or charge again, while the fans use a flight battery that drains in the air and recharges as you drive, fastest at speed and when braking. You are warned at 10 %, and the car lands itself at 3 %.
- The ceiling depends on graphics quality: 120–300 m in the streamed worlds and up to 400 m on the home map.
Anti-collision shield
- Press I (or SHIELD). It watches traffic, people, walls, buildings and poles, including cars coming from behind or the side, and predicts where everything will be over the next few seconds.
- It warns first, then brakes hard, then brakes and swerves. If a crash still can’t be avoided, it deploys the fans and flies up and away from the threat. Afterwards it lands back on the road and carries on, or keeps flying, as you choose in Settings.
- The badge shows an arrow towards the threat and the time to contact, and the phone vibrates.
Go & Return
- Open the big map, click a destination (Shift-click adds more stops), then choose By road, By air or Auto. The car goes there, waits if you set a wait, and comes back.
- Send the car lets it go without you, with the camera following it or staying with you. Save places you visit often. Backspace cancels.
Scout drone
- Press G to launch the camera drone from its pad on the roof. W A S D or the arrows move it, Space / Shift climb and descend, Q E or the mouse turn it, and the mouse or [ ] tilt the camera gimbal. Let go and it holds its position.
- C switches between the chase camera and the gimbal camera. R flies it back and lands it on the roof while you watch (move to take over again); G gives you the car back and it flies home by itself.
- It brakes for buildings, trees and hills, warns when the signal gets weak and comes home by itself when the signal or the battery runs low. It recharges on the roof. In combat missions it carries a gun (click to fire, X for kamikaze).
Bus simulator: autopilot, flight and the shield
The bus has the car's driver-assist and flight technology, rebuilt for a 12–19 t vehicle and for the job of running a line. The autopilot panel (top right, movable) shows what it is doing and why; the phone's Pilot tab has the same buttons and two flight sticks.
Autopilot
- Shift+J(or AUTOPILOT) drives the line by itself. It follows the kerb lane, slows for bends, junction turns, speed humps, rough roads, rain, fog and snow chains, follows traffic at a safe gap, stops at red lights (and clears an amber only when the whole bus gets across in time), gives way at junctions, on roundabouts and to pedestrians, and won't enter a junction it can't get out of.
- At each stop where someone is waiting or getting off it brakes smoothly into the stop box (usually to within 10 cm of the mark), opens the doors, kneels and puts the ramp out for wheelchair users, sells the paper tickets, waits for everyone and for the departure time, closes up, signals and pulls out when nothing is coming. Stops with nobody for them are passed.
- It overtakes a vehicle that has stopped in its lane when the way is clear, moves to the inner lane before a turn across the traffic, and turns on the lights at dusk. Driving styles: Relaxed, Normal and Sporty (Shift+K); all of them keep within the passengers' comfort limits.
- Right-click the big map (M) to drop a pin, then Drive to pin: the autopilot drives there by road. A firm steer or either pedal takes over.
Fly mode
- Shift+X (or FLY), standing or rolling, with the doors shut: six ducted fans swing out from the roof rails and the bus lifts off. With the autopilot on, it flies along the line to the next stop to serve, lands in the box and drives on.
- In the air the car's flight keys work: W S A D tilt, Q E turn, Space / Shift climb and descend, H hover, L land, J flight autopilot along the line, R back to the depot, K sport mode, [ ] nose-down angle and X to land and drive.
- It flies heavier than the car (slower to tilt and turn) but gets up to speed quickly: with the nose down at 35°, 0–100 km/h takes about 5 seconds. The nose-down angle (0–35°, default 20°) sets the cruising speed, about 120 km/h at 20° and 170 km/h at 35°. With passengers aboard it flies gently and banks into the turns, so they feel almost nothing.
- Landing at a stop: in the stop box if it's clear, otherwise on the nearest clear stretch before it (then it rolls in), after it, or in the next lane. It checks where every vehicle and pedestrian will be when it touches down, and never hangs in the air waiting.
- Energy is unlimited by default. Turn it off in Settings and the fans run on a flight battery that drains in the air and recharges as you drive.
Safety systems
- Anti-collision shield(on by default): it predicts the bus and every vehicle a few seconds ahead. If a comfortable stop won't avoid a contact it brakes hard; if even that can't, the fans pop out and the bus jumps up and away, then lands back on the road and carries on.
- Jam hop: stuck in a real queue (not a red light), the autopilot flies low along the line over it and lands past it, or in the stop box if the stop is inside the queue. Driving yourself, the panel offers it (Shift+H).
- Fall protection: heading off the road towards a drop or the water, the bus brakes; too late for that, it flies back to the road.
- Go & Return (Shift+G): flies to the next stop, serves it, and flies back to where you started.
- The PC screen stays awake while the bus drives or flies itself.
The mega ship
The mega ship in Ships & submarines is a walkable cruise ship with decks 2 to 16 open to explore: a garage you can drive in, a kart track, pools and slides, a farm, a forest, a theatre, cabins, a helideck, a drone pad and a bay of rescue tenders.
- Maps. Press J (or the Map button) for the deck plan, with a “you are here” arrow, every room and activity, and a deck picker. A small map stays in the corner while you walk or drive. At the helm, J opens the sea chart with your route, ports, islands and icebergs; click a port to plan a voyage there.
- Quick travel. Pick any of 28 places from the list in the map, or click its pin, and a short fade takes you there. B goes straight to the bridge. On the phone, use “Go to…”.
- Arrow keys work everywhere: walking, driving, flying the drone or helicopter, and steering the ship.
- At the helm. ↑ ↓ set the speed and ← → the rudder; Q Z are the bow thrusters. Above sea speed the hyper drive runs from 10 % to 100 % (2,000 km/h), with keys 1–0 jumping straight to a step. Autopilot can sail the voyage for you.
- Panoramic bridge. The bridge display shows port, ahead and starboard side by side, and each side can be opened full screen.
Controls
Every game can be played with a keyboard and mouse. Most also accept a gamepad, and all games except the garage can be played with your phone as the controller. The help dialog inside each game lists every key; these are the essentials.
| Game | Keyboard and mouse | Also |
|---|---|---|
| Airline | Assisted mode: ↑ ↓ climb and descend, ← → bank, W S throttle. K switches to the classic stick. | Gamepad, flight stick, voice (Chrome, Edge), webcam hand yoke, VR, phone |
| Car / bike | W S or arrows to accelerate and brake, A D to steer, Space handbrake. J AUTODRIVE, X fly, I shield, M map (see autodrive and flight). | Gamepad, on-screen touch controls, phone |
| Drone | W S forward and back, A D slide, Q E turn, Space / Shift climb and descend, V microphone. | Voice or typed commands, phone |
| Train, ships, bus | Power, brake and steering on the keyboard; each game's help lists its keys. | Gamepad, phone; the bus also has touch controls |
| Mega ship | Arrows or W A S D to walk, drive and steer, J map, B bridge, 1–0 hyper speed at the helm (see the mega ship). | Phone (Go to…, speed buttons) |
| Tactical ops | Mouse to look, keyboard to move, squad orders on keys. | Gamepad, voice, phone |
| Archery | Mouse to aim, hold Space or the left button to draw and let go to shoot, Shift to hold your breath. | Phone as the bow |
| Long range | Right button or V to scope in, arrows for the turrets, hold Shift to hold your breath, left button or F to fire. | Phone as the scope |
| Basketball | Drag and flick the mouse (or a finger) up to shoot; A / D walk round the arc, hold F for a keyboard shot. | Phone as the ball |
Mouse aiming uses pointer lock: click the view to capture the mouse and press Esc to release it. Voice commands on the computer use the browser’s speech recognition, which is available in Chrome and Edge; elsewhere you can type the same commands.
Graphics and performance
The 3D games adapt to your computer so they stay smooth on modest hardware.
- Automatic quality. A performance governor watches the frame time and steps down one rung at a time: resolution first, then shadows, then detail (draw distance and the density of trees, traffic, people and effects). When there is headroom again it steps back up, waiting longer before retrying a level it had to give up, so it doesn’t flicker between settings.
- A sensible start. The starting level comes from simple hardware hints (CPU cores, memory and the graphics renderer); a software renderer starts at the lowest level.
- Manual tiers. Each game’s settings let you pick a fixed quality instead (for example Low, Medium, High and, in the airline, Ultra), turn on an FPS counter, and in the airline adjust speed effects and camera shake.
- Shader warm-up. Before the first frame the game compiles its shaders in the background with a short “Preparing graphics” card, instead of freezing the tab.
- Recovery. If the main thread stalls badly, the graphics drop to the lowest level for the session with a notice; if the graphics context is lost, the game shows a banner and rebuilds it.
See performance tips for what to try on a slow machine.
Accounts and members
You can start playing without an account: every game has free starter levels. Signing in with a free Si-des account unlocks every other mission, expedition and championship.
- Si-des sign-in. DriveMind uses Si-des Auth, the Sides single sign-on service, over OpenID Connect. Sign in from the account button or when you open a members-only level; you come back to where you were.
- Fail-closed policy. The list of free levels lives in one place. Any level not listed as free, including levels added later, requires sign-in.
- Examples of free levels: the drone’s training and free flight, the rail tutorial and first express run, the DM-72 turboprop on every route, free drive at home and in Kigali, the first rally stage, the bus City Loop and Kigali line K1, and the basketball rookie free throws.
- Sessions last up to 8 hours. Signing out also ends your Si-des session.
Phone controller
Your phone can be the controller in the airline, car, drone, ships, train, bus, tactical, archery, long-range and basketball games. Each game page has a phone button that opens the pairing panel; the phone loads only that game’s layout.
Pairing
- On the computer, open a game and press the phone button. A QR code, a 6-character code and an address appear.
- Scan the QR code with the phone camera, or open the address on the phone and type the code. No sign-in is needed on the phone.
- Pick a mode (for example Tilt, Buttons or Touch stick in the airline) and tap Start. On iPhone, allow motion access when asked.
- A code works for one phone and expires after 10 minutes if unused. A paired session ends after 30 minutes without traffic.
- Tilt and other motion controls need HTTPS: phones only give motion sensors to secure pages. Buttons and touch sticks work over plain HTTP on a home network.
- Locking the phone or switching apps sends the controls to neutral at once. If the phone goes quiet for about a second, the computer releases its controls.
- The controls travel over a direct, encrypted WebRTC link when possible, and over the DriveMind server (the HTTP relay) when not. The header dot on the phone shows the link quality.
Game sound on the phone
The speaker button on the phone plays the game’s sound through the phone. In the phone’s settings choose Computer too or Phone only; Phone only mutes the game, music and ambience on the computer. Nothing is captured until a phone asks for sound.
- Sound needs the direct WebRTC link. Over the relay there is no sound, and the phone says so.
- Spoken voices made by the browser’s speech synthesis can’t be captured and stay on the computer.
- On iPhone, use the hardware buttons for volume.
Other phone features
- Vibration for touchdowns, warnings, collisions and shots, on Android Chrome and Firefox. iPhone browsers have no vibration API.
- Push-to-talk voice commands using the phone browser’s own speech recognition, for the games that have voice commands.
- Head look (off by default): turn the phone to look around in cockpit and interior views.
- Retry and Back to menu appear on the phone when a run ends, and Disconnect from PC ends the session on both sides.
Deployment notes
For anyone running their own copy. The full list of settings is in .env.example and the README.
- Server environment only. All settings are server-side environment variables; none are sent to the browser. Keep secrets in
.env.localor the host’s environment settings, and never commit or share that file. - Sign-in needs the Si-des Auth issuer URL, a client ID, the site’s public origin and a random session secret of 32 or more characters. Without them, starter levels still work and members-only levels explain that sign-in isn’t set up.
- Phone pairing on Vercel requires Upstash Redis (or any Redis with the Upstash-compatible REST API). Each serverless request may run on another instance, so in-memory pairing can’t work there: the API answers
shared_store_requireduntil a store is connected. Add Upstash for Redis to the project, then redeploy. A single long-lived Node server can use the in-memory store. - HTTPS is needed for tilt controls and the screen wake lock.
- WebRTC. Production builds hand out a public STUN server by default; you can replace it, add a TURN server for strict networks, or turn it off. Without a direct path the relay is used automatically.
- Admin visibility overrides are saved to a file in the server’s data folder, which needs a writable, persistent disk.
- AI first officer (airline) is optional and only active when an API key for it is configured on the server.
Architecture
DriveMind is a Next.js App Router application. The games run entirely in the player’s browser; the server handles sign-in, phone pairing and relay, admin visibility and the optional AI first officer.
| Part | Built with | What it does |
|---|---|---|
| Web app | Next.js 16, React 19, zustand | Pages, menus and HUDs. Per-frame values live in plain mutable objects, not React state; HUDs sample them a few times a second. |
| 3D scenes | React Three Fiber, three | Worlds, vehicles and effects. Repeated objects are instanced; large worlds are streamed in chunks around the player. |
| Simulations | Plain TypeScript | Fixed-step physics (for example 60 Hz), drawn with render interpolation so motion stays smooth at any display rate. Most sims run headless in tests. |
| Performance | Governor, shader warm-up | Adaptive quality ladder (resolution, shadows, detail), main-thread watchdog, WebGL context-loss recovery, background shader compilation. |
| Sound | WebAudio | Engines, rotors, wind and effects are synthesised; a generated music radio. A tap can send the mix to the phone. |
| Phone link | WebRTC data channel + audio track | Controls from the phone and game sound to it, peer to peer and encrypted (DTLS). Signalling and the relay fallback go over Server-Sent Events and POST through /api/remote. |
| Pairing store | In memory, or Upstash Redis | Short-lived pairing sessions with expiring keys. Memory for one long-lived server, Redis on serverless hosts. |
| Sign-in | Si-des Auth (OpenID Connect) | Authorisation code flow with PKCE on the server; an encrypted httpOnly session cookie; the fail-closed member policy. |
| Admin visibility | /api/visibility | The admin can hide games and missions; everyone else reads the list. Writes are checked on the server. |
Joining a phone, step by step
- The computer asks /api/remote to create a session and gets an ID, the 6-character code and its own secret token.
- The phone joins with the code (or the ID from the QR code) and gets its own secret token. The code can't be used again.
- Both sides open an event stream (Server-Sent Events, or long-polling if a proxy buffers it) and exchange WebRTC offers and answers through it.
- When the direct link opens, controls and sound flow peer to peer. If it can't open, messages keep flowing through the relay.
Looking for ways to play with reduced motion, keyboard only or without tilt? See Accessibility.