Reworked the way that entities are loaded so they're more dynamic and can be configured without modifying C++code.
This commit is contained in:
parent
1f7214fcd4
commit
9ce4fbd552
6 changed files with 94 additions and 42 deletions
|
@ -2,36 +2,42 @@
|
|||
"PLAYER_TILE": {
|
||||
"foreground": [255, 200, 125],
|
||||
"background": [30, 20, 75],
|
||||
"hp": 100,
|
||||
"damage": 10,
|
||||
"display":"\ua66b"
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\ua66b"}},
|
||||
{"type": "Combat", "config": {"hp": 200, "damage": 15}}
|
||||
]
|
||||
},
|
||||
"SNAKE": {
|
||||
"foreground": [90, 172, 74],
|
||||
"background": [30, 20, 75],
|
||||
"hp": 15,
|
||||
"damage": 5,
|
||||
"display":"\u06b1"
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u06b1"}},
|
||||
{"type": "Combat", "config": {"hp": 20, "damage": 15}}
|
||||
]
|
||||
},
|
||||
"GOBLIN": {
|
||||
"foreground": [50, 200, 125],
|
||||
"background": [30, 20, 75],
|
||||
"hp": 75,
|
||||
"damage": 30,
|
||||
"display":"\u06bf"
|
||||
"components": [
|
||||
{"type": "LightSource", "config": {"strength": 70, "radius": 1.8}},
|
||||
{"type": "Tile", "config": {"chr": "\u06bf"}},
|
||||
{"type": "Combat", "config": {"hp": 50, "damage": 35}}
|
||||
]
|
||||
},
|
||||
"UNICORN": {
|
||||
"foreground": [25, 200, 125],
|
||||
"background": [30, 20, 75],
|
||||
"hp": 50,
|
||||
"damage": 20,
|
||||
"display":"\u17a5"
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u17a5"}},
|
||||
{"type": "Combat", "config": {"hp": 2000, "damage": 5}}
|
||||
]
|
||||
},
|
||||
"RAT": {
|
||||
"foreground": [75, 200, 125],
|
||||
"background": [30, 20, 75],
|
||||
"hp": 5,
|
||||
"damage": 1,
|
||||
"display":"\u08ac"
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u08ac"}},
|
||||
{"type": "Combat", "config": {"hp": 10, "damage": 5}}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue