Platz Type bgOuter

From Uzebox Wiki
Jump to: navigation, search

Outer BGs are primarily for collision detection efficiency, but also frame the Inner BGs that describe their display. Triggers are also defined as Outer BGs.

typedef struct bgOuter {
    u8 type;       // 0|BGC|BGT*|BGI
    u8 count;      // # of Inner BGs in this Outer BG
    u16 index;     // The position in the Inner BG table at which the Inner BGs begin
    u8 animCount;  // The # of animated background elements in this Outer BG (always the first elements)	
    rect r;        // The area this Outer BG covers
} bgOuter;