fix: y position of dino and cacti now on the desert

This commit is contained in:
theoleuthardt 2025-03-13 13:46:12 +01:00
parent c7554cbb81
commit 8dd09555f2
3 changed files with 7 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#include "Cactus.hpp"
Cactus::Cactus(Texture2D texture, float x, float y) : texture(texture) {
rect = {static_cast<float>(x), static_cast<float>(300 - texture.height),
rect = {static_cast<float>(x), static_cast<float>(320 - texture.height),
static_cast<float>(texture.width), static_cast<float>(texture.height)};
}