Fixed the tilemap loading and rendering. Added a bunch more error checking and tests. Fixed actors not rendering with their layers in the dist.

This commit is contained in:
2025-01-01 13:56:15 -05:00
parent e4d47b0be8
commit 01d75072b9
36 changed files with 1456 additions and 656 deletions

View File

@@ -36,9 +36,9 @@ typedef struct {
} sprite;
// initializes a new sprite to use the given sheet and otherwise sets to zero
ErrorContext *sprite_initialize(sprite *spr, char *name, spritesheet *sheet);
ErrorContext ERROR_NOIGNORE *sprite_initialize(sprite *spr, char *name, spritesheet *sheet);
// loads a given image file into a new spritesheet
ErrorContext *spritesheet_initialize(spritesheet *sheet, int sprite_w, int sprite_h, char *filename);
ErrorContext *sprite_load_json(char *filename);
ErrorContext ERROR_NOIGNORE *spritesheet_initialize(spritesheet *sheet, int sprite_w, int sprite_h, char *filename);
ErrorContext ERROR_NOIGNORE *sprite_load_json(char *filename);
#endif //_SPRITE_H_