oskarrough / slaytheweb

Slay the Web is a singleplayer, deck builder, roguelike card crawl game for the web based on Slay the Spire
https://slaytheweb.cards
GNU Affero General Public License v3.0
193 stars 40 forks source link

Monster illustrations #154

Open oskarrough opened 2 years ago

oskarrough commented 2 years ago

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.

AndreyKorzukhin commented 1 year ago

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

oskarrough commented 1 year ago

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.