First of all, thanks for all of the clear and helpful documentation! I've had a positive experience so far developing for the Playdate.
There seems to be an error in the "Inside Playdate with C" documentation for the enum
types listed for SpriteCollisionResponseType
. The code in the documentation shows:
typedef enum {
kSpriteCollisionTypeSlide,
kSpriteCollisionTypeFreeze,
kSpriteCollisionTypeOverlap,
kSpriteCollisionTypeBounce
} SpriteCollisionResponseType;
But according to PlaydateSDK-2.6.2/C_API/pd_api/pd_api_sprite.h
, it should be:
typedef enum {
kCollisionTypeSlide,
kCollisionTypeFreeze,
kCollisionTypeOverlap,
kCollisionTypeBounce
} SpriteCollisionResponseType;
(Notice the absence of a leading Sprite
on each enumerator; I added line separation and indentation to make it easier to compare to the documentation version.) Hope this helps!