Platz Type platform: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
typedef struct platform { | typedef struct platform { | ||
u8 | u8 clrTile; // How to paint vacated tiles (2 MSB reserved for smooth/stepped movement) | ||
u8 | u8 min; // Highest/Leftmost position of platform movement | ||
u8 | u8 max; // Lowest/Rightmost position of platform movement | ||
char v; | u8 axis; // Horizontally or vertically moving | ||
rect r; | char v; // Velocity | ||
rect r; // Platform bounds | |||
} platform; | } platform; |
Latest revision as of 23:39, 2 February 2010
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;