mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor and cleanup player controller
This commit is contained in:
parent
487ba84517
commit
3cd0261f3b
8 changed files with 21 additions and 13 deletions
|
|
@ -40,10 +40,11 @@ void LevelController::update(float delta, bool input, bool pause) {
|
|||
}
|
||||
}
|
||||
blocks->update(delta);
|
||||
player->update(delta, input, pause);
|
||||
level->entities->updatePhysics(delta);
|
||||
level->entities->update();
|
||||
}
|
||||
player->update(delta, input, pause);
|
||||
player->postUpdate(delta, input, pause);
|
||||
|
||||
// erease null pointers
|
||||
level->objects.erase(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue