Making the bossfight function by creating the FSM for it.

This commit is contained in:
Zed A. Shaw 2025-09-27 13:25:34 -04:00
parent 06a174040f
commit 231adb6335
3 changed files with 23 additions and 3 deletions

View file

@ -226,8 +226,18 @@ namespace gui {
event(Event::BOSS_END);
}
} break;
case ATTACK:
fmt::println("ATTACK THE BOSS!");
break;
case MOUSE_MOVE: {
sf::Vector2f pos = mouse_position();
$boss_fight_ui->mouse(pos.x, pos.y, {1 << guecs::ModBit::hover});
} break;
case TICK:
$boss_fight_ui->run_systems();
break;
default:
break; // do nothing for now
fmt::println("BOSS_FIGHT unknown event {}", (int)ev);
}
}