Module ggez::game [] [src]

This module contains traits and structs to actually run your game mainloop and handle top-level state.

Structs

Game

The Game struct takes a GameState you define and does the actual work of running a gameloop, passing events to your handlers, and all that stuff.

Traits

GameState

A trait for defining a game state. Implement load(), update() and draw() callbacks on this trait and hand it to a Game object to be run. You may also implement the *_event callbacks if you wish to handle those events.