up down is broken
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef DELTA_PLAYER
|
||||
#define DELTA_PLAYER
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
#include <SDL3/SDL_main.h>
|
||||
|
||||
#include "renderer/camera.hpp"
|
||||
#include "entity.hpp"
|
||||
#include "math.hpp"
|
||||
|
||||
class Player: public DeltaEntity {
|
||||
public:
|
||||
DeltaCamera camera;
|
||||
DeltaVector2 direction;
|
||||
|
||||
Player() {pos.x = 0; pos.y = 0; pos.z = 0; velocity = DeltaVector3(); angle = DeltaVector2(); camera = DeltaCamera(0, 0, 0);};
|
||||
Player(float x, float y, float z) {pos.x = x; pos.y = y; pos.z = z; velocity = DeltaVector3(); angle = DeltaVector2(); camera = DeltaCamera(0,0,0);};
|
||||
|
||||
void draw(SDL_Renderer *renderer);
|
||||
void update(float deltaTime);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user