Platz Type queryCallback

From Uzebox Wiki
Jump to navigation Jump to search

The queryCallback type is a function pointer that can be set by the Platz client in order to handle collision events for Outer BGs and moving platforms.

Parameters:

  • bgo: The Outer BG with which the player collided. In the case of platforms, this will be NULL.
  • colVal: The collision flag that will be processed by Platz. Set to 0 to ignore the collision. Other valid values are H_INTERSECT to force a collision with the left/right of bgo; and V_INTERSECT to force a collision with the top/bottom of bgo. Note that platforms will only recognize a true/false response (i.e. process collisions or skip them).
typedef void (*queryCallback)(bgOuter *bgo,u8 *colVal);