entity.h UPDATE

This commit is contained in:
theo3
2020-06-18 15:48:30 -07:00
parent f8ae0eaef7
commit b093824bde
11 changed files with 54 additions and 30 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef SPRITE_H
#define SPRITE_H
#include "global.h"
typedef struct {
u8 index;
u8 duration;
union {
u8 raw;
struct {
u8 unk : 6;
u8 hFlip : 1;
u8 vFlip : 1;
} PACKED b;
} PACKED spriteSettings;
union {
u8 raw;
struct {
u8 extraFrameIndex : 6;
u8 unk : 1;
u8 endOfAnimation : 1;
} PACKED b;
} PACKED frameSettings;
} Frame;
#endif