feat(entities): fase 4 - moviment de la momia amb col·lisió, z-order per peus i contacte amb el jugador

This commit is contained in:
JailDesigner committed 2026-04-21 20:14:47 +02:00
1 parent e6b612d164
commit ee8dc25181
17 files changed
+378 -66

No files matched your search

+1 -1
View File
@@ -151,7 +151,7 @@ void Player::clampToPlayfield() {
setPosY(std::clamp(getPosY(), MIN_Y, MAX_Y));
}
auto Player::baseBox() const -> SDL_FRect {
auto Player::getBaseBox() const -> SDL_FRect {
return {
.x = getPosX() + static_cast<float>(collision_x_offset),
.y = getPosY() + static_cast<float>(collision_y_offset),