Platz Type platform

From Uzebox Wiki
Jump to: navigation, search

The platform struct describes the appearance and motion of a moving platform.

typedef struct platform {
    u8		clrTile;			// How to paint vacated tiles (2 MSB reserved for smooth/stepped movement)
    u8		min;				// Highest/Leftmost position of platform movement
    u8		max;				// Lowest/Rightmost position of platform movement
    u8		axis;				// Horizontally or vertically moving
    char	v;				// Velocity
    rect 	r;				// Platform bounds
} platform;