# ggez

Rust game framework with callback\-driven logic, GPU drawing, audio and packaged resource loading\.

ID: Q246 · Revision: 231

Type: software · License: MIT for ggez; dependencies and bundled or imported assets have separate terms\.[^license] · Status: active

Website: https://ggez.rs/



ggez is a Rust game framework inspired by LÖVE, providing drawing, audio, resource loading and event handling\. Developers implement their own game state and callbacks rather than authoring a project in a supplied scene editor\. This article focuses on documented desktop 2D workflows and keeps differences between release documentation and development\-branch claims explicit\.[^docs][^site]

## Application structure

A game supplies its own state type and implements EventHandler, with update and draw required\. Input and window callbacks can be overridden as needed\. The default keyboard behavior includes quitting on Escape; replacing that callback means deciding whether to retain the behavior\. This callback model provides the main loop's interface while leaving the application's state organization to its author\.[^events]

## Drawing and sound

Drawing work is queued into a Canvas, which represents one render pass\. It can target the window or an image for subsequent effects, and finish submits the queued operations\. Audio has separate data and playback objects: SoundData holds bytes, while Source connects data to an output channel\. Source and SpatialSource stop playing when dropped, making object lifetime relevant to sound playback\.[^graphics][^audio]

## Resource lookup and packaging

The filesystem layer searches a resources folder beside the executable, then a resources\.zip archive, then a platform\-dependent save location\. The first matching file wins, permitting local asset overrides without repacking the archive\. The documentation explicitly warns that lookups follow symlinks and that this arrangement is not a security sandbox\. Modding convenience should therefore not be mistaken for confinement of untrusted files\.[^files]

## Platform qualifications

Windows and Linux are consistently documented development targets\. The Linux guide lists native build dependencies, while distribution guidance includes the executable and resource data\. macOS claims differ: the development README lists full support, but the detailed build guide calls it a do\-it\-yourself target and the 0\.10 API overview does not officially support it\. Android and web routes are not treated as equivalent to supported desktop deployment\.[^platforms][^repo][^docs]

## Framework scope and license

ggez supplies common runtime facilities without prescribing every higher\-level game system\. The repository lists physics, animation, GUI, asset management, AI, entity\-component systems and networking as functions to add from elsewhere when needed\. The MIT license permits commercial use and modification with retained notices\. That covers the library, not unrestricted rights to every third\-party asset or dependency a game may include\.[^repo][^license]

## Substitution considerations

ggez is directly relevant to developers considering a Rust replacement for [LÖVE](/love) because the project explicitly identifies that framework as its design inspiration\. The supported overlap is programming desktop 2D drawing, sound and game input\. Moving a Lua game requires rewriting behavior and reviewing rendering, resource paths and optional systems\. Similar callbacks do not establish source compatibility, identical runtime behavior or equal platform coverage\.[^site][^docs][^love][^platforms]

## Capabilities and substitutions

### Callback\-driven game logic — supported

Implement update/draw and selected input callbacks through EventHandler\.[^events]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### 2D render targets — supported

Canvas represents a render pass targeting the screen or an image; finish submits queued draws\.[^graphics]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### Resource archives — supported

Resources can load from a folder, ZIP or platform save location in a documented order\.[^files]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### Filesystem security sandbox — unsupported

The documentation explicitly states directory isolation is for convenience and follows symlinks\.[^files]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### macOS support status — disputed

Development README lists full support, but the platform guide calls macOS DIY and the 0\.10 API overview does not officially support it\.[^docs][^platforms][^repo]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

### [Substitute for LÖVE](/love) — limited

Assessment: an alternative for desktop 2D games when rewriting Lua behavior into Rust is acceptable\. The project explicitly draws on LÖVE's design but does not promise identical behavior or performance; mobile/web coverage and higher\-level systems need separate integration\.[^site][^docs][^platforms][^love]

Use case: Programming desktop 2D games in Rust · Platforms: Windows, Linux · Region: Version, build and integration requirements apply

## References

[^site]: [ggez project overview](<https://ggez.rs/>) — LÖVE\-inspired framework and included subsystems (vendor; retrieved 2026-10-07T20:38:05Z)

[^docs]: [ggez 0\.10 API overview](<https://docs.rs/ggez/latest/ggez/>) — Context/EventHandler workflow, extension scope and stated platform support (vendor; retrieved 2026-10-07T20:38:16Z)

[^events]: [ggez EventHandler](<https://docs.rs/ggez/latest/ggez/event/trait.EventHandler.html>) — Required update/draw and optional input/quit callbacks (vendor; retrieved 2026-10-07T20:38:26Z)

[^graphics]: [ggez graphics](<https://docs.rs/ggez/latest/ggez/graphics/index.html>) — Canvas render passes, queued draws, finish and image render targets (vendor; retrieved 2026-10-07T20:38:16Z)

[^files]: [ggez filesystem](<https://docs.rs/ggez/latest/ggez/filesystem/index.html>) — Resource folder/archive/save\-directory precedence and symlink warning (vendor; retrieved 2026-10-07T20:38:16Z)

[^audio]: [ggez audio](<https://docs.rs/ggez/latest/ggez/audio/index.html>) — SoundData, Source, SpatialSource and drop behavior (vendor; retrieved 2026-10-07T20:38:26Z)

[^platforms]: [ggez platform guide](<https://github.com/ggez/ggez/blob/master/docs/BuildingForEveryPlatform.md>) — Linux dependencies, Windows distribution, macOS DIY and unofficial mobile/web (vendor; retrieved 2026-10-07T20:38:32Z)

[^repo]: [ggez development README](<https://github.com/ggez/ggez>) — Platform and higher\-level subsystem statements; comparison with release documentation (vendor; retrieved 2026-10-07T20:38:05Z)

[^license]: [ggez MIT license](<https://github.com/ggez/ggez/blob/master/LICENSE>) — Copyright/permission retention and commercial use (vendor; retrieved 2026-10-07T20:38:32Z)

[^love]: [LÖVE overview](<https://love2d.org/>) — Lua 2D framework, drawing/audio examples and platforms (vendor; retrieved 2026-10-07T20:38:16Z)

Source revision: https://substitutefor.net/entities/Q246?revision=231
