Platz Type platform: Difference between revisions

From Uzebox Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 2: Line 2:


  typedef struct platform {
  typedef struct platform {
     u8   min;   // Highest/Leftmost position of platform movement.
     u8 clrTile; // How to paint vacated tiles (2 MSB reserved for smooth/stepped movement)
     u8   max;   // Lowest/Rightmost position of platform movement.
    u8 min; // Highest/Leftmost position of platform movement
     u8 axis; // Horizontally or vertically moving.
     u8 max; // Lowest/Rightmost position of platform movement
     char v;     // Velocity.
     u8 axis; // Horizontally or vertically moving
     rect r;     // Platform bounds (static area, but dynamic position)
     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;