Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GamesNovember 22, 20265 min read

How to Make a Physics Puzzle Game

Physics puzzles are fun when the physics is predictable and miserable when it jitters. Here is how to keep the simulation stable, author levels and rate them with stars.

Startbase Team
Editorial ink illustration of a wooden tabletop slingshot aimed at a tower of planks, the stone in the pouch in ember orange

Key takeaways

  • Run physics on a fixed timestep with an accumulator, so the same shot gives the same result on every device.
  • Keep objects at sizes the physics engine expects (roughly 0.1 to 10 meters) and let resting bodies sleep, or stacks will jitter.
  • Stars should reward a better solution (fewer shots, less material, faster), with thresholds set from your own solutions plus slack.

To make a physics puzzle game, pick one physical action the player controls (launch, cut, draw, place, remove), use a proven physics engine on a fixed timestep so results are repeatable, build levels by hand around that action, and rate each solution with one to three stars. The genre covers Angry Birds style launching, Cut the Rope style cutting, bridge building and draw-a-line puzzles. They all fail the same way: unstable physics. So most of this guide is about keeping the simulation honest.

Choose one verb

Physics puzzles work best when the player has one clear way to touch the world, and the physics does the rest:

  • Launch: pull back and release to throw something (a slingshot, a cannon). The puzzle is angle and power.
  • Cut or release: remove a rope, a pin or a support at the right moment. The puzzle is timing and order.
  • Place: drop a limited set of shapes into the scene before pressing play (contraption puzzles). The puzzle is design.
  • Draw: draw a line that becomes a solid object. The puzzle is shape, with ink as a resource.
  • Remove: tap blocks to delete them so something falls the right way. The puzzle is cause and effect.

Pick one for your first game. A second verb can arrive in a later world as a twist, but a single, well-explored verb is how the classics of the genre began.

Physics engines for browser games

Do not write a physics engine. Use one. Common choices for the web: Matter.js (simple, popular for 2D), Planck.js (a port of the Box2D engine, very stable for stacking), and Rapier (fast, with 2D and 3D versions, and deterministic when used carefully). On Startbase, 3D games come with Rapier ready to switch on; for a 2D game, name the engine you want in your brief or let the agent choose, and ask it to explain the choice.

Stable physics, step by step

Fixed timestep

Screens refresh at 60, 90, 120 Hz or unevenly when a phone is busy. If the physics steps by however long the last frame took, the same shot lands differently on different devices, and a level that is solvable on your laptop may not be on a phone. Instead, step physics in fixed increments (1/60 of a second is standard) and use an accumulator: add the real elapsed time each frame, run as many fixed steps as fit, and carry the remainder. Cap the number of steps per frame so a long pause does not cause a spiral of catch-up work.

Units and sizes

Most physics engines are tuned for objects between about 0.1 and 10 meters. If you build the world in pixels and treat 1 pixel as 1 meter, a crate is 50 meters wide and everything moves like it is underwater. Pick a scale (say 50 pixels = 1 meter), convert at the boundary between physics and drawing, and keep every object inside that size range. If a phone struggles when many bodies are awake, the phone performance guide shows how to find the cost.

Stacks that do not jitter

  • Let bodies sleep. Bodies at rest for a short time should stop simulating until something touches them. This also stops a tower from slowly creeping apart before the player acts.
  • More solver iterations make stacks more stable, at some performance cost. A few extra iterations is usually worth it in a puzzle game, where scenes are small.
  • Reasonable mass ratios. A 100 kg block resting on a 0.1 kg plank will misbehave. Keep ratios within about 10 to 1 where things touch.
  • Start levels settled. Place objects exactly touching, or let the level simulate silently for a moment before the player sees it, so nothing drops or bounces at the start.
  • Avoid tunneling. Fast, small objects can pass through thin walls between steps. Use continuous collision detection (sometimes called bullet mode) for projectiles and keep walls thick.

Authoring levels

Physics levels are spatial, so build them by placing things, not by describing coordinates. On Startbase, ask the agent to set up the first level and the object types (planks, stone blocks, glass, the target, the launcher), then switch to Edit to arrange levels yourself in the World Editor. You can drag blocks with edge snapping, duplicate a column of planks, show colliders to check what is actually solid, and press P to play from where you are looking. Editing by hand does not use credits.

  • Design the solution first. Decide the intended solution, build the level around it, then look for unintended ones.
  • One idea per level. “The heavy ball rolls down the ramp into the support” is a level. Three unrelated ideas is a mess.
  • Readable materials. Wood, stone and glass should look different and behave differently (glass breaks easily, stone is heavy). Players reason from appearance.
  • Test the chaos. Play each level twenty times with sloppy inputs. If wild shots often win, the level is too loose; if the intended solution fails some of the time, it is too fragile.

Star ratings that mean something

Stars turn a solved level into an invitation to solve it better. One star for completing, two and three for a better solution, measured by one clear metric per game:

  • Fewer shots or moves (launch games): 3 stars for the minimum, 2 for one extra.
  • Less material (draw and build games): ink used or budget spent, under thresholds.
  • Collectibles (cut-the-rope style): stars as physical pickups along the ideal path. Players can see what “perfect” requires.
  • Speed: finishing under a target time. Works, but adds stress to a thinking game.

Set thresholds from your own best solution plus slack: if your best uses 2 shots, three stars at 2, two at 3. Show the requirement on the level select screen, and keep the best result per level saved on the device. Saving game progress covers how to store those stars so an update never wipes them.

The brief to paste

A 2D physics puzzle game for phones, landscape. A catapult on the left launches stones at wooden, stone and glass structures guarding grumpy snowmen; knock every snowman off the screen or into water to win. Drag back from the catapult to aim (show a short dotted arc for the first part of the trajectory), release to fire. Use a stable 2D physics engine on a fixed 1/60 s timestep with an accumulator; scale 50 pixels = 1 meter; resting bodies sleep; projectiles use continuous collision. Materials: glass breaks on a strong hit, wood takes two, stone is heavy and unbreakable. Levels settle before they appear. Stars by stones used (thresholds per level). 10 levels to start, each built around one idea, and a level select screen with stars. Expose gravity, launch power and material strengths as dials.

Pitfalls

  • Different results per device. Almost always a variable timestep. Fix it before designing levels.
  • Towers collapsing on load. Objects placed overlapping, or no settle step.
  • Aim aids that solve the level. A full trajectory preview removes the puzzle. Show the first part only.
  • Slow reset. Restarting a level should be instant, ideally a button that is always visible.

Tune gravity and material strength with live dials in the engine panel (see the games template docs) before you build many levels, for the same reason you tune a platformer’s jump first. For level design ideas from grid puzzles, our puzzle game guide covers teaching through levels and difficulty ramps. Physics puzzles are also among the best game ideas for beginners, with a few twists listed there to start from.

Frequently asked questions

Which physics engine should I use for a browser game?

Matter.js is simple and popular for 2D, Planck.js (a Box2D port) is very stable for stacked objects, and Rapier is fast and available for both 2D and 3D. Any of them is better than writing your own.

Why do my physics objects jitter or fall apart?

Common causes are a variable timestep, objects that are too large or small for the engine, extreme mass differences, and bodies that never sleep. Fix the timestep and scale first.

How do I decide star thresholds for physics puzzles?

Solve each level as well as you can, then set three stars at your best result and two stars with some slack. Show the thresholds so players know what to aim for.

On this page

  • Choose one verb
  • Physics engines for browser games
  • Stable physics, step by step
  • Authoring levels
  • Star ratings that mean something
  • The brief to paste
  • Pitfalls

Keep reading

More in Games
Editorial ink illustration of a wooden toy figure jumping between two stone ledges, the coin above the gap in ember orange
GamesNovember 22, 2026

How to Make a Platformer Game with AI

A platformer lives or dies on its jump. Here are the numbers behind a jump that feels fair, how to build levels around it, and how to get an AI agent to build both.

7 min read
Editorial ink illustration of a tin wind-up runner on track pieces laid down ahead of it, the next track piece in ember orange
GamesNovember 22, 2026

How to Make an Endless Runner Game

An endless runner is a level generator with a character on top. Get the chunks, the speed curve and the controls right and the rest is art.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.