Registry / other / ggez
library0.9.3rscratesunverified

A lightweight game framework for making 2D games with minimum friction, inspired by Love2D.

# Cargo.toml [dependencies] ggez = "0.9.3"
INSTALL
IMPORT
SIG · GGEZ
G
ggez
otherrustv0.9.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Context
use ggez::Context;

Creates a minimal game window with an empty event loop.

use ggez::{Context, GameResult}; use ggez::event::{self, EventHandler}; struct Game; impl EventHandler for Game { fn update(&mut self, _ctx: &mut Context) -> GameResult<()> { Ok(()) } fn draw(&mut self, _ctx: &mut Context) -> GameResult<()> { Ok(()) } } fn main() -> GameResult<()> { let (ctx, event_loop) = ggez::ContextBuilder::new("game", "author") .build()?; event::run(ctx, event_loop, Game) }
Debug
Known issues
gotchaRequires a graphics backend (OpenGL/Vulkan) and may not work in headless environments.
fix
Ensure a display server is available or use a virtual framebuffer.
affects: >=0.9.0
Upgrade
Version history
0.9.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
ggez — cargo add ggez · libregistry