Add an ability to mark the main UI dirty so that it forces a render at specific times.

This commit is contained in:
Zed A. Shaw 2025-02-22 23:26:47 -05:00
parent b8bafdcab5
commit fa6311f10c
6 changed files with 20 additions and 8 deletions

View file

@ -6,7 +6,7 @@
"foreground": [255, 200, 125],
"background": [30, 20, 75]
},
{"_type": "Combat", "hp": 200, "max_hp": 200, "damage": 15, "dead": false},
{"_type": "Combat", "hp": 200, "max_hp": 200, "damage": 50, "dead": false},
{"_type": "Motion", "dx": 0, "dy": 0, "random": false},
{"_type": "LightSource", "strength": 50, "radius": 1.0},
{"_type": "EnemyConfig", "hearing_distance": 5},

View file

@ -10,7 +10,8 @@
"foreground": [24, 120, 189],
"background": [230,120, 120]
},
{"_type": "Sprite", "name": "torch_horizontal_floor"}
{"_type": "Sprite", "name": "torch_horizontal_floor"},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"SWORD_RUSTY": {
@ -38,7 +39,8 @@
"background": [150, 100, 189]
},
{"_type": "Loot", "amount": 10},
{"_type": "Sprite", "name": "barrel_small"}
{"_type": "Sprite", "name": "barrel_small"},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
],
"inventory_count": 1
},
@ -53,7 +55,8 @@
"background": [24, 205, 210]
},
{"_type": "LightSource", "strength": 60, "radius": 1.8},
{"_type": "Sprite", "name": "torch_pillar"}
{"_type": "Sprite", "name": "torch_pillar"},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"POTION_HEALING_SMALL": {
@ -67,7 +70,8 @@
"background": [255, 205, 189]
},
{"_type": "Curative", "hp": 200},
{"_type": "Sprite", "name": "healing_potion_small"}
{"_type": "Sprite", "name": "healing_potion_small"},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
},
"GRAVE_STONE": {
@ -81,7 +85,8 @@
"background": [24, 205, 189]
},
{"_type": "Loot", "amount": 10},
{"_type": "Sprite", "name": "grave_stone"}
{"_type": "Sprite", "name": "grave_stone"},
{"_type": "Sound", "attack": "pickup", "death": "blank"}
]
}
}