Fixing bug

This commit is contained in:
Vladislav Khorev 2023-12-03 22:39:08 +03:00
parent 48510c3aa6
commit 0cc3dce9a8
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -226,7 +226,7 @@ namespace ZL
//Create background mesh depending on screen size
Env::backgroundSectionWidth = BACKGROUND_HEIGHT * backgroundTextureScale;
Env::backgroundSectionWidth = BACKGROUND_WIDTH * backgroundTextureScale;
GameObjects::backgroundMesh = CreateRectHorizontalSections2D({ BACKGROUND_WIDTH * backgroundTextureScale * (0.5f), BACKGROUND_HEIGHT * backgroundTextureScale * (0.5f) }, { BACKGROUND_WIDTH * backgroundTextureScale * 0.5f, BACKGROUND_HEIGHT * backgroundTextureScale * 0.5f }, 0, 2);