substitutefor

software · Q246

ggez

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

Suggest a correction

Overview

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.[1][2]

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.[3]

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.[4][6]

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.[5]

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.[2][7][8]

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.[8][9]

Substitution considerations

ggez is directly relevant to developers considering a Rust replacement for LÖVE 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.[1][2][7][10]

Capabilities & limitations

Callback-driven game logic

supported

Implement update/draw and selected input callbacks through EventHandler.[3]

Programming desktop 2D games in Rust · Windows, Linux · Version, build and integration requirements apply

1 source · check evidence
https://docs.rs/ggez/latest/ggez/event/trait.EventHandler.html

Required update/draw and optional input/quit callbacks

vendor · checked 2026-10-07

2D render targets

supported

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

Programming desktop 2D games in Rust · Windows, Linux · Version, build and integration requirements apply

1 source · check evidence
https://docs.rs/ggez/latest/ggez/graphics/index.html

Canvas render passes, queued draws, finish and image render targets

vendor · checked 2026-10-07

Resource archives

supported

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

Programming desktop 2D games in Rust · Windows, Linux · Version, build and integration requirements apply

1 source · check evidence
https://docs.rs/ggez/latest/ggez/filesystem/index.html

Resource folder/archive/save-directory precedence and symlink warning

vendor · checked 2026-10-07

Filesystem security sandbox

unsupported

The documentation explicitly states directory isolation is for convenience and follows symlinks.[5]

Programming desktop 2D games in Rust · Windows, Linux · Version, build and integration requirements apply

1 source · check evidence
https://docs.rs/ggez/latest/ggez/filesystem/index.html

Resource folder/archive/save-directory precedence and symlink warning

vendor · checked 2026-10-07

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.[2][7][8]

Programming desktop 2D games in Rust · Windows, Linux · Version, build and integration requirements apply

3 sources · check evidence
https://github.com/ggez/ggez

Platform and higher-level subsystem statements; comparison with release documentation

vendor · checked 2026-10-07
https://github.com/ggez/ggez/blob/master/docs/BuildingForEveryPlatform.md

Linux dependencies, Windows distribution, macOS DIY and unofficial mobile/web

vendor · checked 2026-10-07
https://docs.rs/ggez/latest/ggez/

Context/EventHandler workflow, extension scope and stated platform support

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

LÖVE for Programming desktop 2D games in Rust

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.[1][2][7][10]

Windows, Linux · Version, build and integration requirements apply

References

  1. ggez project overview

    LÖVE-inspired framework and included subsystems

    vendor · retrieved 2026-10-07
  2. ggez 0.10 API overview

    Context/EventHandler workflow, extension scope and stated platform support

    vendor · retrieved 2026-10-07
  3. ggez EventHandler

    Required update/draw and optional input/quit callbacks

    vendor · retrieved 2026-10-07
  4. ggez graphics

    Canvas render passes, queued draws, finish and image render targets

    vendor · retrieved 2026-10-07
  5. ggez filesystem

    Resource folder/archive/save-directory precedence and symlink warning

    vendor · retrieved 2026-10-07
  6. ggez audio

    SoundData, Source, SpatialSource and drop behavior

    vendor · retrieved 2026-10-07
  7. ggez platform guide

    Linux dependencies, Windows distribution, macOS DIY and unofficial mobile/web

    vendor · retrieved 2026-10-07
  8. ggez development README

    Platform and higher-level subsystem statements; comparison with release documentation

    vendor · retrieved 2026-10-07
  9. ggez MIT license

    Copyright/permission retention and commercial use

    vendor · retrieved 2026-10-07
  10. LÖVE overview

    Lua 2D framework, drawing/audio examples and platforms

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
2312026-10-10 15:50:02/* wbeditentity-create-item:0| */ sf:23f2ecbe-7481-4e45-9331-350d947318bd:v1 | Adds ggez as a Rust alternative to LÖVE for desktop 2D games. Captures macOS support disagreement across project pages, resource-lookup security limits and audi | attribution: /proposals/23f2ecbe-7481-4e45-9331-350d947318bd