Colors are now being loaded from assets/palette.json

This commit is contained in:
Zed A. Shaw 2025-07-17 10:50:09 -04:00
parent 48a7f72411
commit f4fa50a413
13 changed files with 113 additions and 52 deletions

View file

@ -3,8 +3,8 @@
"placement": "fixed",
"components": [
{"_type": "Tile", "display": 41981,
"foreground": [255, 200, 125],
"background": [0,0,0]
"foreground": "enemies/fg:player",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 200, "max_hp": 200, "damage": 10, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
@ -14,8 +14,8 @@
"GOLD_SAVIOR": {
"components": [
{"_type": "Tile", "display": 42586,
"foreground": [131, 213, 238],
"background": [0,0,0]
"foreground": "enemies/fg:gold_savior",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 1, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
@ -29,8 +29,8 @@
"KNIGHT": {
"components": [
{"_type": "Tile", "display": 2189,
"foreground": [131, 213, 238],
"background": [0,0,0]
"foreground": "enemies/fg:knight",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 1, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
@ -44,8 +44,8 @@
"AXE_RANGER": {
"components": [
{"_type": "Tile", "display": 1898,
"foreground": [156, 172, 197],
"background": [0,0,0]
"foreground": "enemies/fg:axe_ranger",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 40, "max_hp": 40, "damage": 10, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": true},
@ -59,8 +59,8 @@
"RAT_GIANT": {
"components": [
{"_type": "Tile", "display": 2220,
"foreground": [205, 164, 246],
"background": [0,0,0]
"foreground": "enemies/fg:rat_giant",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 50, "max_hp": 50, "damage": 2, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
@ -74,8 +74,8 @@
"SPIDER_GIANT_HAIRY": {
"components": [
{"_type": "Tile", "display": 1218,
"foreground": [205, 164, 246],
"background": [0,0,0]
"foreground": "enemies/fg:spider_giant",
"background": "color:transparent"
},
{"_type": "Combat", "hp": 20, "max_hp": 20, "damage": 20, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},