mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
'Player' class, separated main file
Moved render code to world_render.h, declarations code (assets and blocks) to declarations.h
This commit is contained in:
parent
2a158bfb46
commit
b7e8ff5bea
11 changed files with 370 additions and 265 deletions
19
src/objects/Player.h
Normal file
19
src/objects/Player.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef SRC_OBJECTS_PLAYER_H_
|
||||
#define SRC_OBJECTS_PLAYER_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
class Camera;
|
||||
class Hitbox;
|
||||
|
||||
class Player {
|
||||
public:
|
||||
float speed;
|
||||
Camera* camera;
|
||||
Hitbox* hitbox;
|
||||
float camX, camY;
|
||||
Player(glm::vec3 position, float speed, Camera* camera);
|
||||
~Player();
|
||||
};
|
||||
|
||||
#endif /* SRC_OBJECTS_PLAYER_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue