mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
'Assets', some refactor
This commit is contained in:
parent
b7e8ff5bea
commit
2aba3e91db
19 changed files with 350 additions and 213 deletions
|
|
@ -5,6 +5,8 @@
|
|||
|
||||
Player::Player(glm::vec3 position, float speed, Camera* camera) :
|
||||
speed(speed),
|
||||
camera(camera){
|
||||
camera(camera),
|
||||
choosenBlock(1),
|
||||
camX(0.0f), camY(0.0f){
|
||||
hitbox = new Hitbox(position, vec3(0.2f,0.9f,0.2f));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ public:
|
|||
float speed;
|
||||
Camera* camera;
|
||||
Hitbox* hitbox;
|
||||
int choosenBlock;
|
||||
float camX, camY;
|
||||
Player(glm::vec3 position, float speed, Camera* camera);
|
||||
~Player();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue