aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-07-15 15:14:15 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-07-15 15:14:15 +0100
commitbd936662e9b2e33a0d538639fa61ec7a5fbe176e (patch)
tree9091d8f014277f17ac4fc1e7c896e30ef2246eb2 /src
parentd587895b25408dd904753e24548f4e92eafd1010 (diff)
downloadgold-mine-run-bd936662e9b2e33a0d538639fa61ec7a5fbe176e.tar.gz
gold-mine-run-bd936662e9b2e33a0d538639fa61ec7a5fbe176e.zip
Added starts 3 and 4
Diffstat (limited to 'src')
-rw-r--r--src/data.h1
-rw-r--r--src/game.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/data.h b/src/data.h
index 1d9a351..59fa913 100644
--- a/src/data.h
+++ b/src/data.h
@@ -17,6 +17,7 @@ extern const uint8_t binary_intro_start[];
extern const uint8_t binary_stage01_start[];
extern const uint8_t binary_stage02_start[];
extern const uint8_t binary_stage03_start[];
+extern const uint8_t binary_stage04_start[];
/* sound */
extern const uint8_t binary_music_start[];
diff --git a/src/game.c b/src/game.c
index 6f17c51..bfec08f 100644
--- a/src/game.c
+++ b/src/game.c
@@ -48,10 +48,10 @@ static uint8_t gameover;
static uint8_t pause;
static Entity *tmonster;
-#define STAGES_LEN 2
+#define STAGES_LEN 4
static const uint8_t *stages[STAGES_LEN] = {
- binary_stage01_start, binary_stage02_start,
+ binary_stage01_start, binary_stage02_start, binary_stage03_start, binary_stage04_start
};
static void hud_render()