The VibeGameDev engine
The custom engine behind my browser games
A small 3D engine for browser games. The rules run in Rust, compiled to WebAssembly, and it draws with WebGPU. It's set up so your coding agent can build the game, run it and test it.
You get the full source: the engine, a blank game to build in and a finished demo to copy from.
Why It Matters
- Game rules in Rust: Movement, collisions, timers and scoring run in fixed steps, 120 times a second. The same seed and the same inputs give the same run, so your agent can test the rules.
- WebGPU, with a WebGL 2 backup: It talks to the graphics card directly, without Three.js. If WebGPU won't start, the game switches to WebGL 2 as it loads.
- A look you can tune: Sun shadows, bloom, depth of field, ink outlines, local lights, particles and colour grading are built in. You can tune the look while the game runs.
- The screens around the game: Loading, menu, countdown, pause, settings and results are already there, so the blank game starts, pauses and keeps time on day one.
- Keyboard, mouse, touch and gamepad: One input system covers all four, with an on-screen stick for touch. First-person games can turn on mouse and touch look.
- Tests your agent can run: Rust tests check the rules. A browser check then opens the packaged game in Chrome and plays it, once on WebGPU and once on WebGL 2.
- The engine: The Rust core, both renderers, input, screens, audio and saves. It's kept separate from any one game.
- A blank game: A calm, empty scene that already runs. This is where your agent builds your game.
- Starter Arena: A complete demo game. Collect every gem before time runs out, then copy the code you need or delete it.
- Release tools: Packaging and checks for the web, Wavedash and CrazyGames, plus an optional iPhone and iPad add-on.
- It suits stylised games more than realistic ones. It doesn't support normal, metalness or roughness maps, and it reads only part of the glTF format.
- There's no game server or netcode. For online games, the template includes a Colyseus multiplayer skill, and you run your own server.
- There's no built-in pathfinding or enemy AI. Your agent writes what your game needs.
- Players need a browser with WebGPU or WebGL 2. Test on real phones before you release.
- The iPhone and iPad add-on is new. Its steps come from a game that went through TestFlight to App Review, but the Xcode, device and App Store steps haven't been run from the template yet.
Frequently Asked Questions
Do I need to know Rust?
Not to start. The template is made to be used by talking to a coding agent such as Claude Code or Codex, and the agent writes the Rust. You still need to play each build and say what to change.
Can I sell games I make with it?
Yes. The member licence lets you release and sell your games with no royalty or credit required. You can't share or resell the engine's source code itself.
Is the engine free or open source?
No. It's a private GitHub template for VibeGameDev members.