diff options
author | rgl <devnull@localhost> | 2020-02-05 18:28:07 +0100 |
---|---|---|
committer | rgl <devnull@localhost> | 2020-02-05 18:28:07 +0100 |
commit | 3070f8b6c4e359571027b93c140434f7bfd32a3f (patch) | |
tree | 17ec24b9c1aff35470b86098519d3ceb58da16fd /dat.h | |
parent | 9d0d8ac5697d25ce331d0e0bae69bedaa4abad40 (diff) | |
download | st-3070f8b6c4e359571027b93c140434f7bfd32a3f.tar.gz st-3070f8b6c4e359571027b93c140434f7bfd32a3f.tar.bz2 st-3070f8b6c4e359571027b93c140434f7bfd32a3f.zip |
good sprite support with masking and initial rotation attempts.
Diffstat (limited to 'dat.h')
-rw-r--r-- | dat.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,9 @@ +#define DEG 0.01745329251994330 + enum { + KR↺, + KR↻, K↑, K↓, K←, @@ -7,10 +11,21 @@ enum Ke }; +enum +{ + Cmask, + Cbg, + Cfg, + NCOLOR, + + MASKCOLOR = 0x00FF00FF +}; + typedef struct Sprite Sprite; struct Sprite { Point p; Memimage *spr; + double roll; }; |