Skip to content

Commit

Permalink
Merge pull request #3 from BSUIR-SFIT-Labs/hotfix-lab-1
Browse files Browse the repository at this point in the history
Change the bounce of the sprite from the edge of the screen
  • Loading branch information
MrKonstantinSh authored Sep 16, 2020
2 parents c6ff3c3 + e061924 commit 5fa987d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lab_1/Lab_1/Lab_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ COORD CreateNewSpritePosition(COORD spritePosition, COORD spriteSteps, HWND hWnd
newSpritePosition.X = spritePosition.X + spriteSteps.X;
if (newSpritePosition.X < 0)
{
newSpritePosition.X = 0 + SPRITE_STEP + 90;
newSpritePosition.X = 0 + SPRITE_STEP;
}
else if (newSpritePosition.X + spriteSize.cx > windowSize.cx)
{
Expand Down

0 comments on commit 5fa987d

Please sign in to comment.