Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
programming:c:huc:reference [2020/08/15 01:40] – created cabbage | programming:c:huc:reference [2020/08/15 01:56] (current) – cabbage | ||
---|---|---|---|
Line 7: | Line 7: | ||
! HuC Define !! Value | ! HuC Define !! Value | ||
|- | |- | ||
- | SCR_SIZE_32x32 || | + | SCR_SIZE_32x32 || |
|- | |- | ||
- | SCR_SIZE_64x32 || | + | SCR_SIZE_64x32 || |
|- | |- | ||
- | SCR_SIZE_128x32 || | + | SCR_SIZE_128x32 || |
|- | |- | ||
- | SCR_SIZE_32x64 || | + | SCR_SIZE_32x64 || |
|- | |- | ||
- | SCR_SIZE_64x64 || | + | SCR_SIZE_64x64 || |
|- | |- | ||
- | SCR_SIZE_128x64 || | + | SCR_SIZE_128x64 || |
|} | |} | ||
+ | ===== spr_ctrl ===== | ||
+ | == void spr_ctrl(char mask, char value); == | ||
+ | Set attributes of current sprite. | ||
+ | You can set multiple values at once as you like, e.g., '' | ||
+ | {| | ||
+ | ! HuC Define !! Value | ||
+ | |- | ||
+ | ! FLIP_MAS || 0x88 | ||
+ | |- | ||
+ | ! FLIP_X_MASK || 0x08 | ||
+ | |- | ||
+ | NO_FLIP_X || 0x00 | ||
+ | |- | ||
+ | FLIP_X || 0x08 | ||
+ | |- | ||
+ | ! FLIP_Y_MASK || 0x80 | ||
+ | |- | ||
+ | NO_FLIP_Y || 0x00 | ||
+ | |- | ||
+ | FLIP_Y || 0x80 | ||
+ | |- | ||
+ | ! SIZE_MAS || 0x31 | ||
+ | |- | ||
+ | SZ_16x16 | ||
+ | |- | ||
+ | SZ_16x32 | ||
+ | |- | ||
+ | SZ_16x64 | ||
+ | |- | ||
+ | SZ_32x16 | ||
+ | |- | ||
+ | SZ_32x32 | ||
+ | |- | ||
+ | SZ_32x64 | ||
+ | |} |