Skip to content

Commit

Permalink
fix ProcessParallaxAutoScroll being missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Mar 21, 2024
1 parent 741639a commit 79136f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions RSDKv3/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ void ProcessStage(void)

// Update
ProcessObjects();
ProcessParallaxAutoScroll();

if (cameraTarget > -1) {
if (cameraEnabled == 1) {
Expand Down Expand Up @@ -338,6 +339,12 @@ void ProcessStage(void)
Engine.frameCount++;
}

void ProcessParallaxAutoScroll()
{
for (int i = 0; i < hParallax.entryCount; ++i) hParallax.scrollPos[i] += hParallax.scrollSpeed[i];
for (int i = 0; i < vParallax.entryCount; ++i) vParallax.scrollPos[i] += vParallax.scrollSpeed[i];
}

void LoadStageFiles(void)
{
StopAllSfx();
Expand Down
1 change: 1 addition & 0 deletions RSDKv3/Scene.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ extern bool drawStageGFXHQ;

void InitFirstStage();
void ProcessStage();
void ProcessParallaxAutoScroll();

void ResetBackgroundSettings();
inline void ResetCurrentStageFolder() { strcpy(currentStageFolder, ""); }
Expand Down

0 comments on commit 79136f6

Please sign in to comment.