[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
+4
View File
@@ -20,6 +20,10 @@ public:
/** Checks and returns which corners of the object have been collided with */
std::unordered_map<ECorner, bool> checkForCollision(TextureWrapper texture);
int getTileSize() {
return this->tileSize;
}
private:
/** Holds the number for every single tile, which refers to a certain sprite in the tileset */
std::vector<std::vector<Vector2>> map;