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:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user