Basic combat system prototype works, but needs more GUI love to really work in the game.

This commit is contained in:
Zed A. Shaw 2025-02-14 10:18:45 -05:00
parent bfd2718cc9
commit f8dd5d816f
3 changed files with 35 additions and 0 deletions

View file

@ -96,6 +96,7 @@ namespace gui {
// just do 10 ticks
if($rotation_count % 10 == 0) {
System::combat($level);
run_systems();
$rotation = -10.0f;
state(State::IDLE);
@ -182,6 +183,10 @@ namespace gui {
$camera.plan_rotate($rayview, -1);
state(State::COMBAT_ROTATE);
break;
case QUIT:
$window.close();
state(State::END);
return;
default:
break;
}