summaryrefslogtreecommitdiff
path: root/game/src/main.h
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2020-12-30 19:07:31 +0000
committerJuan J. Martinez <jjm@usebox.net>2020-12-30 19:23:41 +0000
commit2682bc5d1d864341aaeb42a449db73c3ecd16d70 (patch)
tree9116764364b4ee0ce7f6037305077807b57776de /game/src/main.h
downloadubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.tar.gz
ubox-msx-lib-2682bc5d1d864341aaeb42a449db73c3ecd16d70.zip
Initial import1.0
Diffstat (limited to 'game/src/main.h')
-rw-r--r--game/src/main.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/game/src/main.h b/game/src/main.h
new file mode 100644
index 0000000..f8d5d77
--- /dev/null
+++ b/game/src/main.h
@@ -0,0 +1,50 @@
+#ifndef _MAIN_H
+#define _MAIN_H
+
+#include <stdint.h>
+
+#ifndef LOCAL
+#define LOCAL extern
+#endif
+
+#define WHITESPACE_TILE 129
+
+// sub-songs matching our Arkos song
+// configure the song to use MSX AY
+enum songs
+{
+ SONG_SILENCE = 0,
+ SONG_IN_GAME,
+ SONG_GAME_OVER,
+};
+
+// we will use 0 and 1 for the music
+#define EFX_CHAN_NO 2
+
+// sound effects matching our Arkos efc song
+// configure the song to use MSX AY
+enum effects
+{
+ EFX_NONE = 0,
+ EFX_START,
+ EFX_BATTERY,
+ EFX_ELEVATOR,
+ EFX_HIT,
+ EFX_DEAD,
+};
+
+void draw_end_game();
+void draw_menu();
+
+// store the selected control
+LOCAL uint8_t ctl;
+
+// Arkos data
+extern uint8_t SONG[];
+extern uint8_t EFFECTS[];
+
+#ifdef LOCAL
+#undef LOCAL
+#endif
+
+#endif // _MAIN_H