mirror of
https://github.com/theoleuthardt/DinoGame.git
synced 2026-06-13 09:27:57 +00:00
fix: y position of dino and cacti now on the desert
This commit is contained in:
parent
c7554cbb81
commit
8dd09555f2
3 changed files with 7 additions and 5 deletions
|
|
@ -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)};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue