filler episode

This commit is contained in:
kdx 2023-03-25 10:01:23 +01:00
parent 89c9c1b351
commit b1e98630da
3 changed files with 64 additions and 0 deletions

45
map/fillerepisode.tmj Normal file
View File

@ -0,0 +1,45 @@
{ "compressionlevel":-1,
"height":14,
"infinite":false,
"layers":[
{
"data":[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1,
1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 0, 0, 0, 1, 1, 1, 1, 2, 0, 1, 1, 1, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 0, 0, 0, 5, 0, 0, 1, 1, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 1, 1, 1, 5, 0, 0, 1,
1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 5, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1,
1, 0, 1, 1, 1, 0, 0, 0, 5, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,
1, 4, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 1, 1, 1,
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 5, 0, 0, 5, 1, 1, 1, 1, 1, 1,
1, 1, 1, 5, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
"height":14,
"id":1,
"name":"Tile Layer 1",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":25,
"x":0,
"y":0
}],
"nextlayerid":2,
"nextobjectid":1,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.10.0",
"tileheight":16,
"tilesets":[
{
"firstgid":1,
"source":"tset.tsj"
}],
"tilewidth":16,
"type":"map",
"version":"1.10",
"width":25
}

18
map/tmj2c.h Normal file
View File

@ -0,0 +1,18 @@
#pragma once
typedef struct {
const char *name;
float opacity;
unsigned int visible;
const unsigned int *data;
} Tmj2cLayer;
typedef struct {
const char *path;
unsigned int width;
unsigned int height;
unsigned int tilewidth;
unsigned int tileheight;
unsigned int numlayers;
const Tmj2cLayer *layers;
} Tmj2cMap;

View File

@ -14,6 +14,7 @@ struct {
{ &map_trailblazer_tmj, "trailblazer" },
{ &map_weallstartsomewhere_tmj, "we all start kekpart" },
{ &map_wakywakysnakysnake_tmj, "waky waky snaky snek" },
{ &map_fillerepisode_tmj, "filler episode" },
{ &map_idkwymmdr_tmj, "idk wym mdr" },
};
unsigned int map_id = 0;