debuff is an open-source framework for 2D browser games, with the goal of handling the repetitive, foundational parts of game development for developers so they can spend their time on what makes their game stand out.
Purpose and positioning According to the project description, debuff handles the foundational work such as the game loop, controls, sound, levels, testing, and publishing. It aims to let developers start from a runnable game within a minute rather than building low-level infrastructure from scratch.
Main capabilities
- Input support: keyboard, touch, and gamepad.
- Display: claims to render crisp pixel graphics on every screen.
- Sound: provides playable sound support.
- Levels: supports importing levels from Tiled or LDtk.
- Publishing: can build and deploy anywhere on the Web, including game portals such as Poki and CrazyGames; the project provides a publishing guide.
- Dev panel: speed, timing, and other feel values can become real-time sliders in the dev panel, with undo support.
- Errors and testing: when something goes wrong, it says whose bug it is and points to the specific line; replays and scene tests can precisely reproduce bugs.
- Renderer spryte: the project claims it draws moving sprites 2 to 4 times faster than the most popular 2D Web renderer and is about one-seventh its size; on its test laptop it reaches 1.6 million sprites at 60 fps, compared with 400,000, and it provides benchmarks for you to run yourself.
- Size: the starter template is about 23 kB.
- Agent support: new projects include .mcp.json, so coding agents such as Claude Code can play and inspect the currently open game and draw pixel art with tenten; whether to use agents is up to the developer.
How to use Requires Node.js 22 or newer. Start a project with the create command, open the URL printed by the command, then press the corresponding key in the game to open the dev panel. After you edit src/main.ts, the game reloads. The first command asks which template to choose. The base templates include basic (minimal starter template), topdown (top-down tile world), isometric (2:1 grid), sidescroller (run and jump), and pointclick (rooms, hotspots, and inventory); all except the first use pixel art drawn with tenten. The examples are complete small games, including platformer, mossfell (top-down adventure), and squish (a matching game suited to mobilematch-3). You can use -- --template to skip the template prompt. pnpm, Yarn, and Bun also work.
Suitable scenarios Suited to developers who want to quickly start a 2D browser game prototype or a complete small game, especially projects that need pixel graphics, multiple input methods, level editing and importing, and publishing to Web game portals. It is also suited to development workflows where coding agents play, inspect, and draw pixel art.
Limitations and status The project is currently in early 0.9 development, the API will change, and feedback from real games will influence API design. The materials do not provide pricing, cost, platform compatibility details, or specific performance guarantees.