background fix

This commit is contained in:
Marc
2023-01-22 17:21:24 +01:00
parent 8b21274d49
commit 50ec708f9c
+1 -1
View File
@@ -295,7 +295,7 @@ int game_staticRender(void){
int game_render(float delta){
deltaAccu += delta;
if(personPositionX - backgroundOffset > backgroundStep) {
if(personPositionX - backgroundOffset > backgroundOffset * 0.1f) {
currentBackground = 1 - currentBackground;
backgroundOffset += backgroundStep;
scene_moveRenderObject(&gameScene, backgrounds[currentBackground], backgroundOffset, 0);