Open oskarrough opened 2 years ago
great, but here's how to use them on enemies... tricky to figure out, so far without success.
Do you mean to ask how it could be implemented? If so, I'm also not sure. All rooms and their monsters are defined in https://github.com/oskarrough/slaytheweb/blob/main/public/content/dungeon-encounters.js. For example
Monster({
hp: 28,
intents: [{weak: 1}, {block: 10, damage: 10}, {damage: 21}],
})
each monster could have two new properties: name
and image
? Once that's added, we "just" need the CSS styles to make it fit into the layout and ideally make it work on mobile landscape as well as desktop.
This kind internet user has allowed us to use these illustrations for Slay the Web.
Currently all enemies only have a healthbar.