Best open-source 2D game engines

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.

Open Source Stack Summary

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.

ToolPricingAI ModeEnginesOutputs
Godot Engine icon
Godot Engine
Free (MIT)StandardGodot.glb/.gltf, HLSL/GLSL Shader
raylib icon
raylib
Free (zlib)StandardAny Engine, Web / JS.glb/.gltf, .png Sprite Sheet
Bevy icon
Bevy
Free (MIT / Apache-2.0)StandardBevy, Web / JS.glb/.gltf, HLSL/GLSL Shader
LÖVE (Love2D) icon
LÖVE (Love2D)
Free (zlib)StandardLÖVE.png Sprite Sheet, .wav/.ogg
Phaser icon
Phaser
Free (MIT)StandardWeb / JS.png Sprite Sheet, HLSL/GLSL Shader
MonoGame icon
MonoGame
Free (MS-PL)StandardAny Engine.png Sprite Sheet, HLSL/GLSL Shader
Defold icon
Defold
Free ($0 / 0% royalty)StandardDefold, Web / JS.glb/.gltf, .png Sprite Sheet
GDevelop icon
GDevelop
Free (MIT core)StandardWeb / JS, Any Engine.png Sprite Sheet, .glb/.gltf
TIC-80 icon
TIC-80
Free (MIT)StandardPICO-8, Web / JS.png Sprite Sheet, .wav/.ogg
Pyxel icon
Pyxel
Free (MIT)StandardPICO-8, Web / JS, Any Engine.png Sprite Sheet, .wav/.ogg
  1. 1
    Godot Engine icon
    Featured

    Godot Engine

    MIT open-source 2D and 3D game engine with zero royalties

    340Free (MIT)Game Engines
    StandardGodot
  2. 2
    raylib icon
    Hot

    raylib

    Simple, zero-dependency C99 library for 2D and 3D games

    251Free (zlib)Game Engines
    StandardAny EngineWeb / JS
  3. 3
    Bevy icon
    Hot

    Bevy

    Data-driven Rust game engine built on a parallel ECS

    244Free (MIT / Apache-2.0)Game Engines
    StandardBevyWeb / JS
  4. 4
    LÖVE (Love2D) icon
    Hot

    LÖVE (Love2D)

    Beloved zlib-licensed 2D Lua framework behind Balatro

    228Free (zlib)Game Engines
    StandardLÖVE
  5. 5
    Phaser icon
    Hot

    Phaser

    Fast MIT TypeScript and JavaScript 2D HTML5 game framework

    209Free (MIT)Game Engines
    StandardWeb / JS
  6. 6
    MonoGame icon
    Hot

    MonoGame

    Open-source C# XNA framework behind Stardew Valley & Celeste

    184Free (MS-PL)Game Engines
    StandardAny Engine
  7. 7
    Defold icon
    Hot

    Defold

    Ultra-compact Lua 2D and 3D engine for web, mobile, Steam

    176Free ($0 / 0% royalty)Game Engines
    StandardDefoldWeb / JS
  8. 8
    GDevelop icon
    Hot

    GDevelop

    Open-source event-driven 2D and lightweight 3D game engine

    158Free (MIT core)Game Engines
    StandardWeb / JSAny Engine
  9. 9
    TIC-80 icon

    TIC-80

    MIT open-source 240x136 widescreen retro fantasy computer

    118Free (MIT)Game Engines
    StandardPICO-8Web / JS
  10. 10
    Pyxel icon

    Pyxel

    MIT retro pixel game engine for Python with WASM export

    109Free (MIT)Game Engines
    StandardPICO-8Web / JSAny Engine

Open Source Pipeline Criteria

Evaluating 2D game engines (Open Source)

Selecting 2D game engines (Open Source)

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.

Export Binary Size, Iteration Speed, and Console Porting

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.

Studio Decision Matrix

CriterionWhat to CheckStudio Recommendation
Runtime Linking vs Standalone OutputDetermine 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 CompatibilityVerify 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 SeamsTest 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 PathVerify official or partner SDK templates for Nintendo Switch, PlayStation 5, and Xbox Series XS.

Best open-source 2D game engines: FAQ

Does creating models in GPL-licensed Blender or Krita force my game to be open source?
No. The GNU General Public License covers the editor application code itself, not the creative files (.blend, .glb, .fbx, .png, .kra) you produce with it. Every mesh, texture, animation, and map exported from Blender, Krita, Tiled, or TrenchBroom can be sold in closed-source commercial games.
What license obligation do MIT and zlib game engines like Godot and raylib require?
MIT, Apache-2.0, BSD, and zlib licenses only require including the project's copyright and permission notice inside your game's About/Credits menu or bundled `LICENSE.txt` file. You owe zero royalties and never have to release your game's source code.
Is Godot 4 or GameMaker better for a commercial 2D Steam game?
Both power major commercial hits on Steam. Godot 4 is 100% MIT open source ($0 forever) with stronger UI layout containers, node composition, and 3D hybrid flexibility, while GameMaker ($99.99 one-time commercial license) offers an all-in-one 2D sprite/room workflow and direct first-party console export tiers.
What base resolution should pixel-art 2D games use for modern monitors?
320x180 and 640x360 are the gold-standard indie pixel-art base resolutions because both divide evenly by whole integers into 1280x720 (4x / 2x), 1920x1080 (6x / 3x), 2560x1440 (8x / 4x), and 3840x2160 4K (12x / 6x) with zero uneven pixel stretching.