Small error in how mouse events are processed. I need to do them _outside_ of the guecs::UI so that the event is checked once and then confirmed in all grids. Then created a tombstone device to be used as a dead enemy marker that will later allow looting.
This commit is contained in:
parent
6447f86954
commit
e04c03b381
8 changed files with 37 additions and 17 deletions
|
@ -10,6 +10,7 @@
|
|||
"torch_horizontal_floor": "assets/torch_horizontal_floor-256.png",
|
||||
"evil_eye": "assets/evil_eye-sprites.png",
|
||||
"peasant_girl": "assets/undead_peasant-256.png",
|
||||
"grave_stone": "assets/grave_stone-256.png",
|
||||
"floor": "assets/floor_tile_test-256.png",
|
||||
"ceiling": "assets/ceiling_test-256.png",
|
||||
"healing_potion_small": "assets/healing_potion_small-256.png",
|
||||
|
|
|
@ -49,5 +49,21 @@
|
|||
"events": ["Events::GUI::TRAP"]},
|
||||
{"_type": "Sprite", "name": "tripwire_trap"}
|
||||
]
|
||||
},
|
||||
"GRAVE_STONE": {
|
||||
"id": "GRAVE_STONE",
|
||||
"name": "Grave Stone",
|
||||
"description": "Something died here. Was this your doing?",
|
||||
"inventory_count": 0,
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u21ef",
|
||||
"foreground": [32, 123, 164],
|
||||
"background": [24, 205, 189]
|
||||
},
|
||||
{"_type": "Device",
|
||||
"config": {"test": true},
|
||||
"events": []},
|
||||
{"_type": "Sprite", "name": "grave_stone"}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
"RAT_GIANT": {
|
||||
"components": [
|
||||
{"_type": "Tile", "display": "\u08ea",
|
||||
{"_type": "Tile", "display": "\u08ac",
|
||||
"foreground": [205, 164, 246],
|
||||
"background": [30, 20, 75]
|
||||
},
|
||||
|
|
BIN
assets/grave_stone-256.png
Normal file
BIN
assets/grave_stone-256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
Add table
Add a link
Reference in a new issue