We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e931a0 commit 965bd12Copy full SHA for 965bd12
Chapter02/BGSpriteComponent.cpp
@@ -21,7 +21,7 @@ void BGSpriteComponent::Update(float deltaTime)
21
for (auto& bg : mBGTextures)
22
{
23
// Update the x offset
24
- bg.mOffset.x -= mScrollSpeed * deltaTime;
+ bg.mOffset.x += mScrollSpeed * deltaTime;
25
// If this is completely off the screen, reset offset to
26
// the right of the last bg texture
27
if (bg.mOffset.x < -mScreenSize.x)
0 commit comments