Struct caper::game::Game [] [src]

pub struct Game {
    pub input: Input,
    pub renderer: Renderer,
    pub physics: World<f32>,
    pub audio: Audio,
    pub cam_state: CamState,
    // some fields omitted
}

Struct for creating an instance of a game with all systems and items contained

Fields

The input system for the game

The render system for the game

The physics system

The audio system

Simple struct for camera data

Methods

impl Game
[src]

Creates a new instance of a game

Get the len of render_items

Get a ref to a render item

Get a ref to a render item from its name, returning the first found

Add a render item to the game

Get the len of render_items

Get a ref to a text item

Get a ref to a text item from its name, returning the first found

Add a text item to the game

Starting the game loop