[][src]Trait rangoon::Game

pub trait Game {
    fn new() -> Self;
fn instance() -> MutexGuard<'static, Self>;
fn key_down(&mut self, key_code: u32);
fn run(&mut self, delta: f64); fn build_graphics() -> Graphics { ... }
fn start()
    where
        Self: 'static
, { ... } }

Required methods

fn new() -> Self

fn instance() -> MutexGuard<'static, Self>

fn key_down(&mut self, key_code: u32)

fn run(&mut self, delta: f64)

Loading content...

Provided methods

fn build_graphics() -> Graphics

fn start() where
    Self: 'static, 

Loading content...

Implementors

Loading content...