diff --git a/jumpingbird.wasm b/jumpingbird.wasm index 1974aa3..65ac66a 100644 Binary files a/jumpingbird.wasm and b/jumpingbird.wasm differ diff --git a/main.cpp b/main.cpp index ff21806..67994a5 100755 --- a/main.cpp +++ b/main.cpp @@ -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);