This fixes the stupid 'bug' where nothing would render because I actually had the data type wrong in the json after moving to the new format.

This commit is contained in:
Zed A. Shaw 2025-02-09 14:05:39 -05:00
parent a69be90464
commit b6831b75a3
3 changed files with 28 additions and 34 deletions

View file

@ -3,21 +3,21 @@
"foreground": [255, 200, 125],
"background": [30, 20, 75],
"components": [
{"_type": "Tile", "config": {"chr": "\ua66b"}},
{"_type": "Combat", "config": {"hp": 200, "damage": 15}},
{"_type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"_type": "LightSource", "config": {"strength": 70, "radius": 2}},
{"_type": "EnemyConfig", "config": {"hearing_distance": 5}}
{"_type": "Tile", "chr": "\ua66b"},
{"_type": "Combat", "hp": 200, "damage": 15},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "LightSource", "strength": 70, "radius": 2},
{"_type": "EnemyConfig", "hearing_distance": 5}
]
},
"EVIL_EYE": {
"foreground": [75, 200, 125],
"background": [30, 20, 75],
"components": [
{"_type": "Tile", "config": {"chr": "\u08ac"}},
{"_type": "Combat", "config": {"hp": 100, "damage": 50}},
{"_type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"_type": "EnemyConfig", "config": {"hearing_distance": 10}}
{"_type": "Tile", "chr": "\u08ac"},
{"_type": "Combat", "hp": 100, "damage": 50},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 10}
]
}
}