background fix
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user