Struct nitro::GameObject [] [src]

pub struct GameObject {
    pub transform: Transform,
    pub sprite: Option<Sprite>,
    pub body: Option<RigidBodyHandle<f32>>,
    pub draw_layer: i32,
    // some fields omitted
}

GameObjects are the primary descriptor for things that are visible in the game world. Players, items, enemies, and whatever else exists in your game world are typically GameObjects.

To create a new GameObject use nitro::App::new_gameobject().

Fields

Methods

impl GameObject
[src]