Basic combat system prototype works, but needs more GUI love to really work in the game.
This commit is contained in:
parent
bfd2718cc9
commit
f8dd5d816f
3 changed files with 35 additions and 0 deletions
5
gui.cpp
5
gui.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue