diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-27 14:36:47 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-27 14:36:47 +0100 |
commit | c98443338eb55fb75f9aaf5e547bd3277b8f50ab (patch) | |
tree | a369e9e1cdb7e9457dc7d8105e0895d74ecf00b1 | |
parent | f2e879ca1cf1089f4d910bb08d152ca804039944 (diff) | |
download | gold-mine-run-c98443338eb55fb75f9aaf5e547bd3277b8f50ab.tar.gz gold-mine-run-c98443338eb55fb75f9aaf5e547bd3277b8f50ab.zip |
Stage 29
-rw-r--r-- | data/stage29.json | 231 | ||||
-rw-r--r-- | src/data.h | 1 | ||||
-rw-r--r-- | src/game.c | 3 |
3 files changed, 234 insertions, 1 deletions
diff --git a/data/stage29.json b/data/stage29.json new file mode 100644 index 0000000..d446956 --- /dev/null +++ b/data/stage29.json @@ -0,0 +1,231 @@ +{ "compressionlevel":-1, + "height":23, + "infinite":false, + "layers":[ + { + "data":[56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 56, 57, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 56, 57, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 1, 56, 57, 76, 77, 5, 6, 23, 24, 23, 24, 23, 24, 33, 24, 23, 24, 23, 5, 6, 24, 23, 24, 23, 24, 23, 24, 23, 24, 5, 6, 23, 33, 23, 24, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 3, 4, 3, 4, 33, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 4, 3, 33, 3, 4, 3, 4, 5, 6, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 5, 6, 23, 24, 33, 24, 23, 24, 23, 24, 23, 24, 23, 24, 23, 5, 6, 24, 23, 24, 23, 24, 23, 33, 23, 24, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 3, 4, 78, 79, 55, 55, 55, 55, 55, 55, 55, 55, 58, 59, 58, 59, 55, 55, 55, 55, 55, 55, 55, 55, 78, 79, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 23, 24, 56, 57, 1, 1, 1, 1, 1, 1, 1, 1, 76, 77, 76, 77, 1, 1, 1, 1, 1, 1, 1, 1, 56, 57, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 3, 4, 76, 77, 3, 5, 6, 4, 3, 4, 3, 4, 56, 57, 56, 57, 3, 4, 3, 4, 5, 6, 3, 4, 76, 77, 3, 4, 3, 4, 5, 6, 56, 57, 76, 77, 5, 6, 23, 24, 23, 24, 56, 57, 55, 55, 55, 55, 55, 55, 55, 55, 76, 77, 76, 77, 55, 55, 55, 55, 55, 55, 55, 55, 56, 57, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 3, 4, 76, 77, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 76, 77, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 23, 24, 56, 57, 23, 24, 23, 24, 23, 24, 23, 33, 23, 24, 23, 24, 33, 24, 23, 24, 23, 24, 23, 24, 56, 57, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 5, 6, 4, 76, 77, 55, 55, 55, 58, 59, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 58, 59, 55, 55, 55, 76, 77, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 23, 24, 56, 57, 1, 1, 1, 76, 77, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 76, 77, 1, 1, 1, 56, 57, 5, 6, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 3, 4, 76, 77, 3, 4, 3, 56, 57, 4, 3, 4, 5, 6, 3, 4, 3, 4, 3, 56, 57, 4, 3, 4, 76, 77, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 23, 24, 56, 57, 55, 55, 55, 76, 77, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 76, 77, 55, 55, 55, 56, 57, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 5, 6, 4, 3, 4, 1, 1, 1, 13, 1, 1, 1, 1, 1, 1, 1, 14, 15, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 1, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 23, 24, 23, 24, 23, 24, 23, 24, 23, 33, 23, 3, 4, 3, 4, 3, 4, 34, 35, 3, 4, 3, 4, 3, 4, 24, 33, 24, 23, 24, 23, 24, 23, 24, 23, 24, 76, 77, 56, 57, 3, 4, 3, 4, 55, 55, 78, 79, 55, 55, 55, 55, 55, 55, 55, 55, 78, 79, 78, 79, 55, 55, 55, 55, 55, 55, 55, 55, 78, 79, 55, 55, 3, 4, 3, 4, 56, 57, 76, 77, 23, 3, 4, 24, 1, 1, 48, 49, 1, 1, 1, 1, 1, 1, 1, 1, 56, 57, 56, 57, 1, 1, 1, 1, 1, 1, 1, 1, 46, 47, 1, 1, 23, 24, 5, 6, 76, 77, 56, 57, 3, 23, 24, 4, 3, 4, 68, 69, 3, 4, 5, 6, 24, 23, 24, 23, 76, 77, 76, 77, 24, 23, 24, 23, 24, 4, 5, 6, 66, 67, 3, 4, 3, 4, 3, 4, 56, 57, 76, 77, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 56, 57, 56, 57, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 58, 59, 76, 77, 56, 57, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 76, 77, 56, 57], + "height":23, + "id":1, + "name":"Map", + "opacity":1, + "type":"tilelayer", + "visible":true, + "width":40, + "x":0, + "y":0 + }, + { + "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0, 0, 0, 0, 21, 21, 21, 21, 21, 21, 21, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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":true, + "width":40, + "x":0, + "y":0 + }, + { + "draworder":"topdown", + "id":3, + "name":"Entities", + "objects":[ + { + "height":16, + "id":1, + "name":"Player", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":152, + "y":128 + }, + { + "height":16, + "id":33, + "name":"Snake", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":96, + "y":80 + }, + { + "height":16, + "id":36, + "name":"Bones", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":128, + "y":104 + }, + { + "height":16, + "id":37, + "name":"Old", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":80, + "y":56 + }, + { + "height":16, + "id":40, + "name":"Bat", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":32, + "y":24 + }, + { + "height":16, + "id":34, + "name":"Snake", + "properties":[ + { + "name":"dir", + "type":"string", + "value":"left" + }], + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":208, + "y":80 + }, + { + "height":16, + "id":35, + "name":"Bones", + "properties":[ + { + "name":"dir", + "type":"string", + "value":"left" + }], + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":176, + "y":104 + }, + { + "height":16, + "id":38, + "name":"Old", + "properties":[ + { + "name":"dir", + "type":"string", + "value":"left" + }], + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":224, + "y":56 + }, + { + "height":16, + "id":39, + "name":"Bat", + "properties":[ + { + "name":"dir", + "type":"string", + "value":"left" + }], + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":272, + "y":24 + }, + { + "height":16, + "id":28, + "name":"GoldKey", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":152, + "y":32 + }, + { + "height":16, + "id":30, + "name":"Bonus", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":64, + "y":32 + }, + { + "height":16, + "id":32, + "name":"Pickaxe", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":240, + "y":32 + }, + { + "height":16, + "id":29, + "name":"SilverKey", + "rotation":0, + "type":"", + "visible":true, + "width":16, + "x":176, + "y":152 + }], + "opacity":1, + "type":"objectgroup", + "visible":true, + "x":0, + "y":0 + }], + "nextlayerid":4, + "nextobjectid":41, + "orientation":"orthogonal", + "renderorder":"right-down", + "tiledversion":"1.7.2", + "tileheight":8, + "tilesets":[ + { + "columns":20, + "firstgid":1, + "image":"tiles.png", + "imageheight":48, + "imagewidth":160, + "margin":0, + "name":"Map", + "spacing":0, + "tilecount":120, + "tileheight":8, + "tilewidth":8 + }], + "tilewidth":8, + "type":"map", + "version":"1.6", + "width":40 +}
\ No newline at end of file @@ -42,6 +42,7 @@ extern const uint8_t binary_stage25_start[]; extern const uint8_t binary_stage26_start[]; extern const uint8_t binary_stage27_start[]; extern const uint8_t binary_stage28_start[]; +extern const uint8_t binary_stage29_start[]; /* sound */ extern const uint8_t binary_music_start[]; @@ -53,7 +53,7 @@ static Entity *tmonster; /* 0-index */ #define START_STAGE 0 -#define STAGES_LEN 28 +#define STAGES_LEN 29 static const uint8_t *stages[STAGES_LEN] = { binary_stage01_start, binary_stage02_start, binary_stage03_start, binary_stage04_start, @@ -63,6 +63,7 @@ static const uint8_t *stages[STAGES_LEN] = { binary_stage17_start, binary_stage18_start, binary_stage19_start, binary_stage20_start, binary_stage21_start, binary_stage22_start, binary_stage23_start, binary_stage24_start, binary_stage25_start, binary_stage26_start, binary_stage27_start, binary_stage28_start, + binary_stage29_start, }; static void hud_render() |