mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add Players
This commit is contained in:
parent
5f496eecb2
commit
7027bd6f28
8 changed files with 125 additions and 68 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "lighting/Lighting.hpp"
|
||||
#include "objects/Entities.hpp"
|
||||
#include "objects/Player.hpp"
|
||||
#include "objects/Players.hpp"
|
||||
#include "physics/Hitbox.hpp"
|
||||
#include "physics/PhysicsSolver.hpp"
|
||||
#include "settings.hpp"
|
||||
|
|
@ -193,7 +194,7 @@ PlayerController::PlayerController(
|
|||
BlocksController* blocksController
|
||||
)
|
||||
: settings(settings), level(level),
|
||||
player(level->getPlayer(0)),
|
||||
player(level->players->getPlayer(0)),
|
||||
camControl(player, settings.camera),
|
||||
blocksController(blocksController),
|
||||
playerTickClock(20, 3) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue