Skip to content

Commit 965bd12

Browse files
authored
Revert changes
1 parent 8e931a0 commit 965bd12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter02/BGSpriteComponent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void BGSpriteComponent::Update(float deltaTime)
2121
for (auto& bg : mBGTextures)
2222
{
2323
// Update the x offset
24-
bg.mOffset.x -= mScrollSpeed * deltaTime;
24+
bg.mOffset.x += mScrollSpeed * deltaTime;
2525
// If this is completely off the screen, reset offset to
2626
// the right of the last bg texture
2727
if (bg.mOffset.x < -mScreenSize.x)

0 commit comments

Comments
 (0)