Idea · Aug 25, 2026

Physics Puzzle Engine Lab

Students build a 2D physics engine from scratch using the Canvas API, then use it to author five puzzle levels that each demonstrate a specific physics behavior.

What it would do

Over six weeks students implement a small but complete 2D physics engine: AABB collision detection, discrete impulse resolution, axis-aligned friction, simple joint constraints, and a basic broadphase. They write every algorithm themselves (no physics libraries) in plain JavaScript with the Canvas API. In the final two weeks they use their engine to design five puzzle levels, each targeting one mechanic (stacking, sliding, swinging, bouncing, domino chains). A required design document explains the physics decisions made for each level. The dual deliverable teaches game architecture and applied geometry/math simultaneously, and the puzzle design phase requires students to reason about emergent behavior rather than just pass unit tests.

Key features

  • Engine milestone: AABB detection + impulse resolution by week 2
  • Engine milestone: friction, restitution, joints by week 4
  • Level design milestone: five playable puzzle levels by week 5
  • Written design document explaining physics parameter choices for each level
  • Optional stretch: integrate a Claude API 'playtest critic' that describes what a player would experience

More in Graphics & Simulation

Build Your Own BSP Level Renderer

A staged assignment in which students write a browser renderer for real Quake 1 shareware maps: parse the BSP file, walk the tree front to back, cull with the PVS, and texture surfaces with lightmaps, all on a software framebuffer before optionally porting to WebGL.

Graphics & SimulationClass assignmentLargeOct 11, 2026

Build Your Own Wikipedia Museum

A multi-week team project where students turn Wikidata and Wikimedia Commons into a walkable, accessible 3D museum: data pipeline, procedural floor plans, first-person navigation and an audio-guide mode for screen-reader users.

Graphics & SimulationClass assignmentLargeOct 8, 2026

Build Your Own Micropolis

A staged assignment where students build a SimCity-style city simulator from scratch: zoning grid, power-network flood fill, traffic pathfinding, diffusion-based land value and pollution, and a growth model that ties them together.

Graphics & SimulationClass assignmentLargeOct 7, 2026

Emergent NPC Society

A browser-based 2D world where students configure NPC agents with minimal rules and observe emergent social structures form over time, making complex systems theory and agent design principles viscerally concrete.

Graphics & SimulationClass assignmentLargeJul 26, 2026

All 12 ideas in Graphics & Simulation →