thegame/map.json

330 lines
20 KiB
JSON

{
"version": 1,
"maps": [
{
"default": true,
"map_required": true,
"starting_location": [1, 14],
"name": "test2",
"description": "testtttt2",
"id": "test2",
"width": 16,
"height": 16,
"events": [
{
"evt_type": "location",
"command_id": "mystic_cottage",
"name": "Mystic Cottage",
"description": "A small cottage made of enchanted wood, home to a wise hermit.",
"location": [8, 4]
}, {
"evt_type": "item",
"command_id": "gate_key",
"name": "Gate key",
"description": "A key that unlocks the gate.",
"location": [5, 15]
}, {
"evt_type": "lock",
"command_id": "gate_key",
"name": "Gate",
"description": "This gate is locked. You need a key to open it.",
"location": [7, 13]
}, {
"evt_type": "lock",
"command_id": "gate_key",
"name": "Gate",
"description": "This gate is locked. You need a key to open it.",
"location": [8, 13]
}, {
"evt_type": "item",
"command_id": "map",
"name": "Map",
"description": "A map of the Mystic Forest.",
"location": [8, 14]
}, {
"evt_type": "npc",
"command_id": "czesio",
"name": "Czesio",
"description": "A friendly NPC who can help you with your journey.",
"location": [0, 14]
}
],
"tilemap": [
["grass", "grass", "grass", "grass", "fence", "fence", "fence", "fence", "fence", "fence", "fence", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "house", "house", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "house", "house_entry", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "wall", "wall", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "grass", "grass", "grass", "grass", "wall", "wall", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "fence", "fence", "gate", "fence", "gate", "gate", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "wall", "wall", "grass", "grass", "concrete", "concrete", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "wall", "wall", "grass", "grass", "concrete", "concrete", "fence", "grass", "grass", "grass", "grass"],
["grass", "grass", "grass", "grass", "fence", "wall", "wall", "grass", "grass", "concrete", "concrete", "fence", "grass", "grass", "grass", "grass"],
["fence", "fence", "fence", "fence", "fence", "wall", "wall", "gate", "gate", "wall", "wall", "fence", "fence", "fence", "fence", "fence"],
["road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road"],
["road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road", "road"]
],
"tiles": {
"road": {
"name": "Road",
"icon": {
"char": "=",
"color": [64, 64, 64]
},
"walkable": true,
"description": "Part of road.",
"bitmap": [
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="],
["=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "=", "="]
]
},
"fence": {
"name": "Fence",
"icon": {
"char": "+",
"color": [75, 26, 16]
},
"walkable": false,
"description": "A wooden fence, keeping the area secure.",
"bitmap": [
["+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"],
["|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|"],
["|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|"],
["|", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"],
["|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|"],
["|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|", " ", " ", "|"],
["|", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"],
["+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"]
]
},
"gate": {
"name": "Fence gate",
"icon": {
"char": "@",
"color": [75, 26, 16]
},
"walkable": true,
"description": "A wooden gate in the fence, allowing passage.",
"bitmap": [
["+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"],
["|", " ", " ", "|", " ", " ", "@", " ", " ", "@", " ", " ", "|", " ", " ", "|"],
["|", " ", " ", "|", " ", " ", "@", " ", " ", "@", " ", " ", "|", " ", " ", "|"],
["|", "+", "+", "+", "+", "+", "@", " ", " ", "@", "+", "+", "+", "+", "+", "+"],
["|", " ", " ", "|", " ", " ", "@", " ", " ", "@", " ", " ", "|", " ", " ", "|"],
["|", " ", " ", "|", " ", " ", "@", " ", " ", "@", " ", " ", "|", " ", " ", "|"],
["|", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"],
["+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+", "+"]
]
},
"wall": {
"name": "Wall",
"icon": {
"char": "#",
"color": [204, 204, 204]
},
"walkable": false,
"description": "A sturdy wall made of stone, providing protection.",
"bitmap": [
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"]
]
},
"concrete": {
"name": "Concrete",
"icon": {
"char": ".",
"color": [224, 224, 224]
},
"walkable": true,
"description": "A smooth concrete surface, often used in urban areas.",
"bitmap": [
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."],
[".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", ".", "."]
]
},
"grass": {
"name": "Grass",
"icon": {
"char": ",",
"color": [0, 255, 0]
},
"walkable": true,
"description": "Lush green grass, perfect for a picnic or a stroll.",
"bitmap": [
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"]
]
},
"house": {
"name": "House",
"icon": {
"char": "#",
"color": [153, 111, 41]
},
"walkable": false,
"description": "A cozy little house made of enchanted wood, home to a wise hermit.",
"bitmap": [
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"]
]
},
"house_entry": {
"name": "House door",
"icon": {
"char": "@",
"color": [189, 135, 48]
},
"walkable": true,
"description": "A small wooden door leading to the inside of the house.",
"bitmap": [
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"],
["#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " "],
[" ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#", " ", "#"]
]
}
},
"npcs": {
"czesio": {
"name": "Czesio",
"description": "Dzieńdobry",
"dialogue": [
"Hello adventurer!",
"What do you need?",
"#(00FF00)1. Nothing",
"#(00FF00)2. Gate key"
]
}
}
}, {
"default": false,
"map_required": false,
"starting_location": [2, 4],
"name": "Mystic Cottage",
"description": "A small cottage made of enchanted wood, home to a wise hermit.",
"id": "mystic_cottage",
"width": 5,
"height": 5,
"events": [
{
"evt_type": "item",
"command_id": "map",
"name": "Mystic Forest Map",
"description": "A map of the Mystic Forest.",
"location": [7, 8]
},
{
"evt_type": "location",
"command_id": "test2",
"name": "Door",
"description": "A small wooden door leading to the outside.",
"location": [2, 4]
}
],
"tilemap": [
["wall", "wall", "wall", "wall", "wall"],
["wall", "floor", "floor", "floor", "wall"],
["wall", "floor", "floor", "floor", "wall"],
["wall", "floor", "floor", "floor", "wall"],
["wall", "wall", "door", "wall", "wall"]
],
"tiles": {
"wall": {
"name": "Wall",
"icon": {
"char": "#",
"color": [0, 0, 255]
},
"walkable": false,
"description": "A sturdy wall made of enchanted wood, protecting the cottage.",
"bitmap": [
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"],
["#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#", "#"]
]
},
"floor": {
"name": "Floor",
"icon": {
"char": "+",
"color": [237, 207, 147]
},
"walkable": true,
"description": "A cozy wooden floor, warm and inviting.",
"bitmap": [
["+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " "],
[" ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+"],
["+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " "],
[" ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+"],
["+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " "],
[" ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+"],
["+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " "],
[" ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+", " ", "+"]
]
},
"door": {
"name": "Door",
"icon": {
"char": "@",
"color": [128, 0, 0]
},
"walkable": true,
"description": "A small wooden door leading to the outside.",
"bitmap": [
["@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "+", "-", "-", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "|", " ", " ", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "@"],
["@", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "@"],
["@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@", "@"]
]
}
},
"npcs": {}
}
]
}