10 open-source 2D game engines tools you can inspect, compile, and extend with zero vendor lock-in. Top community picks right now: Godot Engine, raylib and Bevy.
GameDevDB indexes 10 verified 2D game engines filtered for Open Source, led by Godot Engine, raylib, Bevy. Filtered strictly to open-source tools with inspectable public repositories, permissive or DCC-safe OSI licenses, and zero proprietary seat lock-in. When auditing 2D game engines under Open Source constraints, prioritize pixel-perfect camera & tile seams: Test integer viewport scaling (320x180 -> 1080p/1440p) and sub-pixel camera smoothing without tile tearing.
| Tool | Pricing | AI Mode | Engines | Outputs |
|---|---|---|---|---|
Godot Engine | Free (MIT) | Standard | Godot | .glb/.gltf, HLSL/GLSL Shader |
raylib | Free (zlib) | Standard | Any Engine, Web / JS | .glb/.gltf, .png Sprite Sheet |
Bevy | Free (MIT / Apache-2.0) | Standard | Bevy, Web / JS | .glb/.gltf, HLSL/GLSL Shader |
LÖVE (Love2D) | Free (zlib) | Standard | LÖVE | .png Sprite Sheet, .wav/.ogg |
Phaser | Free (MIT) | Standard | Web / JS | .png Sprite Sheet, HLSL/GLSL Shader |
MonoGame | Free (MS-PL) | Standard | Any Engine | .png Sprite Sheet, HLSL/GLSL Shader |
Defold | Free ($0 / 0% royalty) | Standard | Defold, Web / JS | .glb/.gltf, .png Sprite Sheet |
GDevelop | Free (MIT core) | Standard | Web / JS, Any Engine | .png Sprite Sheet, .glb/.gltf |
TIC-80 | Free (MIT) | Standard | PICO-8, Web / JS | .png Sprite Sheet, .wav/.ogg |
Pyxel | Free (MIT) | Standard | PICO-8, Web / JS, Any Engine | .png Sprite Sheet, .wav/.ogg |
MIT open-source 2D and 3D game engine with zero royalties
Simple, zero-dependency C99 library for 2D and 3D games
Data-driven Rust game engine built on a parallel ECS
Beloved zlib-licensed 2D Lua framework behind Balatro
Fast MIT TypeScript and JavaScript 2D HTML5 game framework
Open-source C# XNA framework behind Stardew Valley & Celeste
Ultra-compact Lua 2D and 3D engine for web, mobile, Steam
Open-source event-driven 2D and lightweight 3D game engine
MIT open-source 240x136 widescreen retro fantasy computer
MIT retro pixel game engine for Python with WASM export
Open Source Pipeline Criteria
When shipping commercially with open-source tools, verify whether each component is a standalone asset editor (where GPL/MPL outputs are 100% yours) or an embedded runtime SDK (where MIT, Apache-2.0, BSD, or zlib keeps your game binary proprietary and console-NDA compliant).
Not every engine marketed as 2D calculates coordinates in integer pixel space. Engines built around a 3D world matrix using an orthographic camera (such as Unity and Bevy) excel when mixing 2D sprites with 3D dynamic point lights, perspective parallax, or skeletal Spine meshes, whereas dedicated 2D pixel-coordinate renderers (Godot 4's CanvasItem renderer, GameMaker, Defold, LÖVE, Construct 3) eliminate sub-pixel camera shimmer and floating-point tile seam gaps out of the box.
For browser portals, itch.io embeds, and mobile games, runtime bundle weight directly dictates player drop-off: Defold and Phaser ship complete playable HTML5 builds under 2 to 4 MB, compared to 25 to 60 MB WASM payloads from heavier general-purpose engines. For commercial Steam and Nintendo Switch/PS5/Xbox releases, GameMaker, Unity, and MonoGame (the framework behind Stardew Valley and Celeste) have decades of battle-tested console certification pipelines, while Godot 4 leads indie PC/Steam velocity thanks to instant sub-second project startup, built-in TileMapLayer auto-tiling, and MIT zero-royalty ownership.
Before committing two years of production to any 2D engine, build a single stress-test room spawning 1,000 active bullets, dynamic 2D point lights, a scrolling tilemap, and gamepad UI navigation: exporting that test build onto your lowest-spec target device (such as a base Steam Deck or mobile Safari browser) on week one.
| Criterion | What to Check | Studio Recommendation |
|---|---|---|
| Runtime Linking vs Standalone Output | Determine whether the tool links code into your game executable or only exports art/level files. | Require MIT/Apache/BSD/zlib/MPL-2.0 for linked runtime code; GPL is 100% safe for standalone DCC editors. |
| Console NDA Compatibility | Verify permissive licensing without copyleft source-disclosure requirements that conflict with Switch/PS5/Xbox SDK NDAs. | MIT-licensed engines (Godot, Bevy) and runtimes (ink, Steam Audio) pass console legal review cleanly. |
| Pixel-Perfect Camera & Tile Seams | Test integer viewport scaling (320x180 -> 1080p/1440p) and sub-pixel camera smoothing without tile tearing. | Use Godot 4, GameMaker, or LÖVE for crisp low-res pixel art; add 2px tile extrusion in Unity URP 2D. |
| Console Certification Path | Verify official or partner SDK templates for Nintendo Switch, PlayStation 5, and Xbox Series X | S. |