We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22372ca commit a4656d6Copy full SHA for a4656d6
Chapter02/BGSpriteComponent.cpp
@@ -26,7 +26,7 @@ void BGSpriteComponent::Update(float deltaTime)
26
// the right of the last bg texture
27
if (bg.mOffset.x < -mScreenSize.x)
28
{
29
- bg.mOffset.x = (mBGTextures.size() - 1) * mScreenSize.x - 1;
+ bg.mOffset.x += mScreenSize.x * mBGTextures.size();
30
}
31
32
0 commit comments