Refactor the way assets are laid out in the assets/ dir and then have a build script that can automatically pixelate/posterize images that I save, saving me tons of time.
This commit is contained in:
parent
3dc70c3af6
commit
dc8648016d
108 changed files with 177 additions and 277 deletions
|
@ -50,21 +50,21 @@ namespace gui {
|
|||
switch(ritual.element) {
|
||||
case FIRE:
|
||||
make_button(name, Events::GUI::ATTACK,
|
||||
slot, "broken_yoyo-64", "fireball_01", "flame");
|
||||
slot, "broken_yoyo", "fireball_01", "flame");
|
||||
break;
|
||||
case LIGHTNING:
|
||||
make_button(name, Events::GUI::ATTACK,
|
||||
slot, "pocket_watch-64", "electric_shock_01", "lightning");
|
||||
slot, "pocket_watch", "electric_shock_01", "lightning");
|
||||
break;
|
||||
default:
|
||||
make_button(name, Events::GUI::ATTACK,
|
||||
slot, "severed_finger-64", "punch_cartoony", "ui_shader");
|
||||
slot, "severed_finger", "punch_cartoony", "ui_shader");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
auto hp_gauge = $gui.entity("hp_gauge");
|
||||
$gui.set<Sprite>(hp_gauge, {"stone_doll_cursed-64"});
|
||||
$gui.set<Sprite>(hp_gauge, {"stone_doll_cursed"});
|
||||
$gui.set<Clickable>(hp_gauge,
|
||||
guecs::make_action(*$level.world, Events::GUI::HP_STATUS, {}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue