Map is way better and components::Tile is _vastly_ improved by switching to a wchar_t on display and letting nlohmann::json auto convert it for me.
This commit is contained in:
parent
2b57552152
commit
2e79cf8781
11 changed files with 70 additions and 71 deletions
|
@ -7,7 +7,7 @@
|
|||
"inventory_count": 0,
|
||||
"randomized": false,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u2ac5",
|
||||
{"_type": "Tile", "display": 10949,
|
||||
"foreground": [24, 205, 189],
|
||||
"background": [24, 205, 189]
|
||||
},
|
||||
|
@ -24,7 +24,7 @@
|
|||
"inventory_count": 0,
|
||||
"placement": "fixed",
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u2259",
|
||||
{"_type": "Tile", "display": 8793,
|
||||
"foreground": [24, 205, 189],
|
||||
"background": [24, 205, 189]
|
||||
},
|
||||
|
@ -40,7 +40,7 @@
|
|||
"description": "Watch where you're going.",
|
||||
"inventory_count": 0,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u1ac7",
|
||||
{"_type": "Tile", "display": 6855,
|
||||
"foreground": [24, 205, 189],
|
||||
"background": [24, 205, 189]
|
||||
},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"PLAYER_TILE": {
|
||||
"placement": "fixed",
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\ua66b",
|
||||
{"_type": "Tile", "display": 42603,
|
||||
"foreground": [255, 200, 125],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
"KNIGHT": {
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u088d",
|
||||
{"_type": "Tile", "display": 2189,
|
||||
"foreground": [131, 213, 238],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
@ -28,7 +28,7 @@
|
|||
},
|
||||
"AXE_RANGER": {
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u076a",
|
||||
{"_type": "Tile", "display": 1898,
|
||||
"foreground": [156, 172, 197],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
@ -43,7 +43,7 @@
|
|||
},
|
||||
"RAT_GIANT": {
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u08ac",
|
||||
{"_type": "Tile", "display": 2220,
|
||||
"foreground": [205, 164, 246],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
"SPIDER_GIANT_HAIRY": {
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u08ea",
|
||||
{"_type": "Tile", "display": 2282,
|
||||
"foreground": [205, 164, 246],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"inventory_count": 1,
|
||||
"components": [
|
||||
{"_type": "LightSource", "strength": 50, "radius": 2.5},
|
||||
{"_type": "Tile", "display": "\u0f08",
|
||||
{"_type": "Tile", "display": 3848,
|
||||
"foreground": [24, 120, 189],
|
||||
"background": [230,120, 120]
|
||||
},
|
||||
|
@ -21,7 +21,7 @@
|
|||
"inventory_count": 1,
|
||||
"components": [
|
||||
{"_type": "Weapon", "damage": 15},
|
||||
{"_type": "Tile", "display": "\u1e37",
|
||||
{"_type": "Tile", "display": 7735,
|
||||
"foreground": [24, 120, 189],
|
||||
"background": [24, 120, 189]
|
||||
},
|
||||
|
@ -34,7 +34,7 @@
|
|||
"name": "Small Barrel",
|
||||
"description": "A small rotten barrel that may hold things.",
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\uaaea",
|
||||
{"_type": "Tile", "display": 43754,
|
||||
"foreground": [150, 100, 189],
|
||||
"background": [150, 100, 189]
|
||||
},
|
||||
|
@ -50,7 +50,7 @@
|
|||
"description": "Light Hanging from Ceiling",
|
||||
"inventory_count": 0,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u077e",
|
||||
{"_type": "Tile", "display": 1918,
|
||||
"foreground": [24, 205, 210],
|
||||
"background": [24, 205, 210]
|
||||
},
|
||||
|
@ -65,7 +65,7 @@
|
|||
"description": "A small healing potion.",
|
||||
"inventory_count": 1,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u03eb",
|
||||
{"_type": "Tile", "display": 1003,
|
||||
"foreground": [255, 205, 189],
|
||||
"background": [255, 205, 189]
|
||||
},
|
||||
|
@ -80,7 +80,7 @@
|
|||
"description": "Something died here. Was this your doing?",
|
||||
"inventory_count": 1,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u21ef",
|
||||
{"_type": "Tile", "display": 8687,
|
||||
"foreground": [32, 123, 164],
|
||||
"background": [24, 205, 189]
|
||||
},
|
||||
|
|
|
@ -4,20 +4,20 @@
|
|||
"foreground": [40, 15, 125],
|
||||
"background": [200, 15, 75],
|
||||
"collision": false,
|
||||
"display":"."
|
||||
"display": 10398
|
||||
},
|
||||
"WALL_PLAIN": {
|
||||
"texture": "assets/wall_texture_test-256.png",
|
||||
"foreground": [230, 20, 30],
|
||||
"background": [230, 20, 120],
|
||||
"collision": true,
|
||||
"display": "#"
|
||||
"display": 9608
|
||||
},
|
||||
"WALL_VINES": {
|
||||
"texture": "assets/wall_with_vines-256.png",
|
||||
"foreground": [230, 20, 30],
|
||||
"background": [230, 20, 120],
|
||||
"collision": false,
|
||||
"display":"|"
|
||||
"display": 35
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue