Skip to content

Commit

Permalink
fix: change the bounce of the sprite from the edge of the screen
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKonstantinSh committed Sep 16, 2020
1 parent 71bf683 commit e061924
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 e061924

Please sign in to comment.