Making the bossfight function by creating the FSM for it.
This commit is contained in:
parent
06a174040f
commit
231adb6335
3 changed files with 23 additions and 3 deletions
12
gui/fsm.cpp
12
gui/fsm.cpp
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue