mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add player entity (draft)
This commit is contained in:
parent
939cfdd851
commit
77c9c5cdb7
6 changed files with 39 additions and 13 deletions
|
|
@ -242,7 +242,7 @@ void PlayerController::update(float delta, bool input, bool pause) {
|
|||
}
|
||||
updateFootsteps(delta);
|
||||
updateCamera(delta, input);
|
||||
updateControls(delta);
|
||||
updatePlayer(delta);
|
||||
|
||||
}
|
||||
camControl.refresh();
|
||||
|
|
@ -288,7 +288,8 @@ void PlayerController::resetKeyboard() {
|
|||
input.jump = false;
|
||||
}
|
||||
|
||||
void PlayerController::updateControls(float delta){
|
||||
void PlayerController::updatePlayer(float delta) {
|
||||
player->updateEntity(level);
|
||||
player->updateInput(level, input, delta);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue