ggez Rust game framework with callback-driven logic, GPU drawing, audio and packaged resource loading.
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]
Contents 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]
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]
References ggez project overview LÖVE-inspired framework and included subsystems
vendor · retrieved 2026-10-07 ggez 0.10 API overview Context/EventHandler workflow, extension scope and stated platform support
vendor · retrieved 2026-10-07 ggez EventHandler Required update/draw and optional input/quit callbacks
vendor · retrieved 2026-10-07 ggez graphics Canvas render passes, queued draws, finish and image render targets
vendor · retrieved 2026-10-07 ggez filesystem Resource folder/archive/save-directory precedence and symlink warning
vendor · retrieved 2026-10-07 ggez audio SoundData, Source, SpatialSource and drop behavior
vendor · retrieved 2026-10-07 ggez platform guide Linux dependencies, Windows distribution, macOS DIY and unofficial mobile/web
vendor · retrieved 2026-10-07 ggez development README Platform and higher-level subsystem statements; comparison with release documentation
vendor · retrieved 2026-10-07 ggez MIT license Copyright/permission retention and commercial use
vendor · retrieved 2026-10-07 LÖVE overview Lua 2D framework, drawing/audio examples and platforms
vendor · retrieved 2026-10-07 Also included: 5 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.