Añadiendo la estructura param
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user