'Assets', some refactor

This commit is contained in:
MihailRis 2022-03-03 18:14:34 +03:00 • committed by GitHub
parent b7e8ff5bea
commit 2aba3e91db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 350 additions and 213 deletions

View file

@ -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));
}

View file

@ -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();