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