qmetrics.net

ggez

Lightweight Rust framework for 2D and 3D games

ggez screenshot

ggez is a Rust game framework for building 2D and 3D games with drawing, audio, input, and resource loading. Its API is influenced by the LÖVE framework, with portable behavior that may differ in detail.

Overview

ggez is a Rust library marketed as a way to create games with low setup friction. It targets 2D and 3D projects and implements a Rust-oriented take on the LÖVE-style API: basic portable drawing, sound, asset loading, and event handling, without promising identical performance or semantics to LÖVE.

The framework ships common game infrastructure so developers can add physics, entity systems, or other layers separately. Capabilities include a filesystem abstraction for folders or zip archives, hardware-accelerated 2D and 3D rendering through wgpu, audio playback for common formats via rodio, TTF text rendering, keyboard and mouse callbacks, configurable engine settings, timing helpers, math integration with mint, and shaders, instanced draws, and render targets.

Typical use centers on a Context object for hardware state, an EventHandler trait for game callbacks, and modules such as graphics and audio. Games construct a state type, build a Context from ContextBuilder or Conf, and run the main loop through event::run. Examples range from single-feature demos to small complete games.

Windows, Linux, and macOS are listed as fully supported platforms. Android, iOS, and web targets are noted as unofficial; another project is referenced for running older ggez builds on those environments. The implementation builds on winit, rodio, and a wgpu-based renderer and keeps events and drawing on the main thread with thread-safe usage patterns.

Key features

  • wgpu-backed 2D and 3D rendering
  • Audio for OGG, WAV, and FLAC
  • Resource loading from disk or zip
  • Keyboard and mouse event callbacks
  • TTF font rendering
  • Configurable engine settings
  • Shaders and render targets
  • LÖVE-inspired game API

Use cases

  • Game jam prototypes in Rust
  • Small 2D arcade-style games
  • Learning Rust game structure
  • Custom engines built atop a thin core

Tags

Similar software

Godot

Cross-platform 2D and 3D game engine

Godot Engine lets creators build 2D and 3D games from one editor and export to desktop, mobile, web, and console targets through publishers.

  • Unified 2D and 3D editor
  • Node and scene workflow
  • GDScript, C#, and C++ scripting
C++Web, Linux, macOS, WindowsDetails →
★ 121.4k⟳ todayMIT
Open Source Alternative to:Unity

Bevy

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

  • Entity-component-system core
  • 2D and 3D renderers
  • Render graph pipelines
RustLinux, macOS, Windows, AndroidDetails →
★ 50.2k⟳ todayApache-2.0 · open core
Open Source Alternative to:Unity

PixiJS

HTML5 WebGL and WebGPU 2D graphics library

PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.

  • WebGPU and WebGL 2D rendering
  • Spritesheets and asset loader
  • Filters and custom shaders
TypeScriptWeb, CLIDetails →
★ 49k⟳ 4 days agoMIT

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

  • Canvas and WebGL rendering
  • Scene-based game structure
  • Arcade and Matter.js physics
JavaScriptWebDetails →
★ 40.9k⟳ todayMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
CLinux, macOS, Windows, AndroidDetails →
★ 35.9k⟳ yesterdayZlib

GDevelop

Cross-platform no-code game engine for 2D and 3D

GDevelop is no-code game development software for building 2D, 3D, and multiplayer games for mobile, desktop, and the web. It uses an event-based system, modular behaviors, and optional AI assistance.

  • No-code event-based game logic
  • 2D and 3D WebGL rendering
  • Modular attachable behaviors
JavaScriptWeb, Linux, macOS, WindowsDetails →
★ 29.6k⟳ todayMIT · open core
Game DevelopmentDesktop/CLI app
Open Source Alternative to:Unity