Back to projects

Full-StackPrototype2026

The Floating Physics Kingdom

An isometric 3D exploration game about physics, set on floating islands above a sea of clouds: no levels, no scores, just ancient machines that wake when you get the physics right, with every simulation checked against hand calculations.

100 passing
Simulation checks vs hand calculations
10
Ancient machines to wake
0
External art assets

Timeline

Oct 2026

Role

Design, simulation and engine

Team

Solo

Domain

Game-based learning · Physics education

Status

Prototype

Stack

Three.jsRapierTypeScriptViteVitestGemini TTS

Section 01

Overview

The machines of a floating kingdom have fallen silent, and nobody remembers how they worked. You wander between islands, each one a physics topic made walkable: the Temple of Motion, the Waterwheel Sanctuary, the Garden of Arcs, the Storm Shrine, the Observatory Spire.

There are no levels and no score. Waking a machine means actually getting the physics right: setting a projectile's angle, balancing a truss, closing a circuit. The chapter structure follows the CBSE / NCERT Class 9 syllabus, so the game doubles as a curriculum companion rather than a generic science toy.

The kingdom: each island is a physics chapter
Title screen showing floating islands labelled Temple of Motion, Garden of Arcs, Pagoda of Echoes, Storm Shrine and Observatory Spire above a sea of clouds

Section 02

The World

Everything is generated in code: no downloaded models, textures or audio. Toon-ramp materials, procedural textures, procedural music and ambience, and a living day cycle with dusk, stars, aurora and sky lanterns. Cranes, butterflies, koi and fireflies keep the islands breathing between experiments.

Rapier drives rigid-body physics for everything that moves, and the character walks, jumps and rides gondolas between islands with pathfinding on the walkable mesh.

Storm Shrine: circuits, induction and a lightning pool, mid-rain
Storm Shrine island in the rain with Tesla coil towers, a glowing lightning pool and the HUD showing Class 9 Chapter 1 progress
Garden of Arcs: projectile range markers on real terrain
Garden of Arcs island with a launcher, distance markers at 2, 4 and 6 metres, a pagoda and a fountain

Section 03

Real Simulations

Each machine runs a real model, not an animation: projectile motion with drag, a 2D truss stiffness solver, nodal circuit analysis, the wave equation, ray optics, orbital mechanics, hydraulics and light gates, all in src/sim as pure TypeScript.

The test suite checks the simulations against hand calculations, and it is the number I am proudest of on this page: 100 checks passing. When the notebook tells you the game's model of something is simplified, that honesty is possible because the model is explicit enough to test.

Story films set up each machine's question before you touch it
In-game story film frame where the Keeper asks which of a heavy and a light ball lands first from the drop tower

Section 04

Learning Design

The Physics Notebook is the spine: a journey view mapping each NCERT chapter to its island, 30 collectible ideas each with its equation and an honest note on how the game models it, an experiment log of your own results, and the films you have unlocked.

Character voices are pre-generated with Gemini TTS at build time, so no API key ever reaches the browser, and every line still appears as a caption without the audio files.

The notebook: NCERT chapters mapped to islands
Physics Notebook overlay with Journey, Films, Ideas, Experiment log and Machines tabs, listing Class 9 chapters Motion, Force and Laws of Motion and Gravitation
Pick a chapter and Pip flies you to its island
Choose a chapter overlay with Class 9 to 12 tabs and NCERT chapters mapped to islands, including one marked island being built

Section 05

Results

The Kingdom is the largest thing I have built alone: an engine-level project where the physics is the gameplay, the art is code, and the curriculum is a real one.

  • 100 simulation checks against hand calculations, run with Vitest
  • 10 machines across the islands, each woken by doing the physics, not watching it
  • Every asset generated in code: geometry, textures, music and ambience
  • CBSE / NCERT Class 9 chapter structure, with honest notes where the model simplifies