This commit is contained in:
2021-07-09 03:22:51 +02:00
parent e4c6a45427
commit 4f30f2ce3a
30 changed files with 565 additions and 314 deletions

View File

@@ -27,7 +27,7 @@ public:
glm::vec2 Position, Size;
float gravity = 1600.0f, maxGravity = 2000.0f, hAcceleration = 1600.0f, hDeacceleration = 800.0f, maxSpeed = 300.0f,
jumpStrength = -1100.0f, maxWalkingSpeed = 300.0f ,maxRunningSpeed = 450.0f;
jumpStrength = -800.0f, maxWalkingSpeed = 300.0f ,maxRunningSpeed = 450.0f;
float hSpeed = 0.0f;
float vSpeed = 0.0f;
//aniamtions
@@ -39,7 +39,7 @@ public:
Texture Sprite;
glm::vec4 spriteUVs;
tileSet* spriteSheet = new tileSet(Sprite, glm::vec2(10,12));
tileSet* spriteSheet = new tileSet(Sprite, glm::ivec2(10,12));
int state;
@@ -52,5 +52,4 @@ public:
void calcPos(float dt);
void animSprite(float dt);
private:
};
};