summaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrgl <devnull@localhost>2020-02-05 18:28:07 +0100
committerrgl <devnull@localhost>2020-02-05 18:28:07 +0100
commit3070f8b6c4e359571027b93c140434f7bfd32a3f (patch)
tree17ec24b9c1aff35470b86098519d3ceb58da16fd /dat.h
parent9d0d8ac5697d25ce331d0e0bae69bedaa4abad40 (diff)
downloadst-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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dat.h b/dat.h
index 21e2891..31764b7 100644
--- a/dat.h
+++ b/dat.h
@@ -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;
};