Añadiendo la estructura param

This commit is contained in:
2024-06-18 07:21:46 +02:00
parent c10de5e929
commit cb3eb7855e
3 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ Background::Background(SDL_Renderer *renderer, Screen *screen, Asset *asset)
cloudsSpeed = 0;
transition = 0;
counter = 0;
rect = {0, 0, GAMECANVAS_WIDTH, GAMECANVAS_HEIGHT};
rect = {0, 0, param->gameWidth, param->gameHeight};
srcRect = {playArea.x, rect.h - playArea.h, playArea.w, playArea.h};
dstRect = {0, 0, playArea.w, playArea.h};
base = rect.h;