slaytheweb icon indicating copy to clipboard operation
slaytheweb copied to clipboard

Add more monster illustrations

Open oskarrough opened this issue 4 years ago • 3 comments

This kind internet user has allowed us to use these illustrations for Slay the Web.

slaytheweb-monsters-imgur

Currently all enemies only have a healthbar.

oskarrough avatar Jan 30 '22 10:01 oskarrough

great, but here's how to use them on enemies... tricky to figure out, so far without success.

AndreyKorzukhin avatar Oct 05 '22 14:10 AndreyKorzukhin

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.

oskarrough avatar Oct 05 '22 17:10 oskarrough