Sprite is now a component we can place on anything to render it.

This commit is contained in:
Zed A. Shaw 2025-02-10 12:58:24 -05:00
parent 9c37960283
commit 6bca6d021e
8 changed files with 50 additions and 26 deletions

View file

@ -11,15 +11,29 @@
{"_type": "EnemyConfig", "hearing_distance": 5}
]
},
"KNIGHT": {
"components": [
{"_type": "Tile", "display": "\u088d",
"foreground": [131, 213, 238],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 200, "damage": 15, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "LightSource", "strength": 70, "radius": 2},
{"_type": "EnemyConfig", "hearing_distance": 5},
{"_type": "Sprite", "name": "armored_knight"}
]
},
"EVIL_EYE": {
"components": [
{"_type": "Tile", "display": "\u08ac",
"foreground": [75, 200, 125],
{"_type": "Tile", "display": "\u0758",
"foreground": [205, 164, 246],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 100, "damage": 50, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "EnemyConfig", "hearing_distance": 10}
{"_type": "EnemyConfig", "hearing_distance": 10},
{"_type": "Sprite", "name": "evil_eye"}
]
}
}