BROKEN: Big refactoring happening, so it compiles but game does not run and the tests fail.

This commit is contained in:
Zed A. Shaw 2025-02-08 14:03:09 -05:00
parent 96efc990c1
commit 9e91c71125
25 changed files with 128 additions and 526 deletions

View file

@ -9,8 +9,8 @@
"inventory_count": 0,
"randomized": false,
"components": [
{"type": "Tile", "config": {"chr": "\u2ac5"}},
{"type": "Device",
{"_type": "Tile", "config": {"chr": "\u2ac5"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::STAIRS_DOWN"]
}
]
@ -24,8 +24,8 @@
"inventory_count": 0,
"placement": "fixed",
"components": [
{"type": "Tile", "config": {"chr": "\u2259"}},
{"type": "Device",
{"_type": "Tile", "config": {"chr": "\u2259"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::STAIRS_UP"]
}
]
@ -38,8 +38,8 @@
"description": "Spikes stab you from the floor.",
"inventory_count": 0,
"components": [
{"type": "Tile", "config": {"chr": "\u1ac7"}},
{"type": "Device",
{"_type": "Tile", "config": {"chr": "\u1ac7"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::TRAP"]
}
]

View file

@ -3,21 +3,21 @@
"foreground": [255, 200, 125],
"background": [30, 20, 75],
"components": [
{"type": "Tile", "config": {"chr": "\ua66b"}},
{"type": "Combat", "config": {"hp": 200, "damage": 15}},
{"type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"type": "LightSource", "config": {"strength": 70, "radius": 2}},
{"type": "EnemyConfig", "config": {"hearing_distance": 5}}
{"_type": "Tile", "config": {"chr": "\ua66b"}},
{"_type": "Combat", "config": {"hp": 200, "damage": 15}},
{"_type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"_type": "LightSource", "config": {"strength": 70, "radius": 2}},
{"_type": "EnemyConfig", "config": {"hearing_distance": 5}}
]
},
"EVIL_EYE": {
"foreground": [75, 200, 125],
"background": [30, 20, 75],
"components": [
{"type": "Tile", "config": {"chr": "\u08ac"}},
{"type": "Combat", "config": {"hp": 100, "damage": 50}},
{"type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"type": "EnemyConfig", "config": {"hearing_distance": 10}}
{"_type": "Tile", "config": {"chr": "\u08ac"}},
{"_type": "Combat", "config": {"hp": 100, "damage": 50}},
{"_type": "Motion", "config": {"dx": 0, "dy": 0, "random": false}},
{"_type": "EnemyConfig", "config": {"hearing_distance": 10}}
]
}
}

View file

@ -7,8 +7,8 @@
"description": "A torch that barely lights the way. You wonder if it'd be better to not see the person who murders you.",
"inventory_count": 1,
"components": [
{"type": "LightSource", "config": {"strength": 70, "radius": 2.0}},
{"type": "Tile", "config": {"chr": "\u0f08"}}
{"_type": "LightSource", "config": {"strength": 70, "radius": 2.0}},
{"_type": "Tile", "config": {"chr": "\u0f08"}}
]
},
"SWORD_RUSTY": {
@ -19,8 +19,8 @@
"description": "A sword left to rot in a deep hole where it acquired a patina of dirt and tetanus. You aren't sure if it's more deadly for you to hold it or for the people you stab with it.",
"inventory_count": 1,
"components": [
{"type": "Weapon", "config": {"damage": 15}},
{"type": "Tile", "config": {"chr": "\u1e37"}}
{"_type": "Weapon", "config": {"damage": 15}},
{"_type": "Tile", "config": {"chr": "\u1e37"}}
]
},
"SWORD_LIGHT_AND_FLAME": {
@ -31,9 +31,9 @@
"description": "A sword so powerful, a great man from the Land of The Rising Sun thrust it into the ocean of Nerf to chill its effects.",
"inventory_count": 1,
"components": [
{"type": "LightSource", "config": {"strength": 70, "radius": 1.8}},
{"type": "Tile", "config": {"chr": "\u0236"}},
{"type": "Weapon", "config": {"damage": 30}}
{"_type": "LightSource", "config": {"strength": 70, "radius": 1.8}},
{"_type": "Tile", "config": {"chr": "\u0236"}},
{"_type": "Weapon", "config": {"damage": 30}}
]
},
"CHEST_SMALL": {
@ -43,8 +43,8 @@
"background": [150, 100, 189],
"description": "A small chest of gold. You wonder who would leave something like this around.",
"components": [
{"type": "Tile", "config": {"chr": "\uaaea"}},
{"type": "Loot", "config": {"amount": 10}}
{"_type": "Tile", "config": {"chr": "\uaaea"}},
{"_type": "Loot", "config": {"amount": 10}}
],
"inventory_count": 1
},
@ -56,8 +56,8 @@
"description": "A torch on a wall you can't pick up.",
"inventory_count": 0,
"components": [
{"type": "Tile", "config": {"chr": "\u077e"}},
{"type": "LightSource", "config": {"strength": 60, "radius": 1.8}}
{"_type": "Tile", "config": {"chr": "\u077e"}},
{"_type": "LightSource", "config": {"strength": 60, "radius": 1.8}}
]
},
"POTION_HEALING_SMALL": {
@ -68,8 +68,8 @@
"description": "A small healing potion.",
"inventory_count": 1,
"components": [
{"type": "Tile", "config": {"chr": "\u03eb"}},
{"type": "Curative", "config": {"hp": 20}}
{"_type": "Tile", "config": {"chr": "\u03eb"}},
{"_type": "Curative", "config": {"hp": 20}}
]
}
}