Struct uorustlibs::art::Tile [] [src]

pub struct Tile {
    pub header: u32,
    pub image_data: [Color16; 1022],
}

A Map Tile, 44px by 44px

Map tiles are stored as |Header:u32|Pixels:u16| Where pixels represents a list of rows, length 2, 4, 6, 8 .. 42, 44, 44, 42 .. 8, 6, 4, 2 and are drawn centred

Fields

Header information for a tile. Unused

Individual pixels. These work as rows, of length 2, 4, 6, 8 .. 42, 44, 44, 42 .. 8, 6, 4, 2

Trait Implementations

impl Art for Tile
[src]

[src]

Convert to a 32bit array Read more

[src]