[Updated] Collision, looks a bit better now, [TODO] Fix the weird slide-up behaviour when jumping against a block now

This commit is contained in:
Ninjaws
2024-12-10 21:42:50 +01:00
parent 774dc3806b
commit 7bdd8829b0
3 changed files with 34 additions and 73 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class TextureWrapper {
float right = this->position.x+this->size.x;
float bottom = this->position.y + this->size.y;
float left = this->position.x;
float margin = 5; // Space to the corner
float margin = 8; // Space to the corner
corners[ECorner::TOP_LEFT] = {left+margin, top};
corners[ECorner::TOP_RIGHT] = {right-margin, top};
corners[ECorner::RIGHT_TOP] = {right, top+margin};