aboutsummaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-06 22:06:28 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-06 22:06:28 +0100
commit752b8c4b4703a5bc43d32b815aa713fab12e653c (patch)
treee61431d523e7fe7217b08fff72ef5ba6c472294b /src/player.h
parent9adf0d53c1ba24fa5c5733423b2e34c4c8798f4b (diff)
downloadgold-mine-run-752b8c4b4703a5bc43d32b815aa713fab12e653c.tar.gz
gold-mine-run-752b8c4b4703a5bc43d32b815aa713fab12e653c.zip
Add free enemy (Old Miner)
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index d0acc93..95bc14a 100644
--- a/src/player.h
+++ b/src/player.h
@@ -14,4 +14,13 @@ void player_hit();
uint16_t player_x();
uint16_t player_y();
+#define GRAVITY_OFF 0
+/* XXX: substract 1 to get the value from gravity_seq */
+#define GRAVITY_DOWN 14
+#define GRAVITY_UP 1
+
+#define GRAVITY_SEQ_LEN 24
+
+extern const uint8_t gravity_seq[GRAVITY_SEQ_LEN];
+
#endif /* _PLAYER_H */