Macro quicksilver::game_loop [] [src]

macro_rules! game_loop {
    ($state: tt) => { ... };
}

A macro that defines the main functions required for native and web

It takes a typename where the type has new, update, draw, and events functions. The new function returns an instance of the type. The events function should return a bool that indicates if the game loop should continue (true) or stop (false).