Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/TEST_Animate2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

Author
~~~~~~
David Barr, aka javidx9, OneLoneCoder 2019, 2020, 2021, 2022
David Barr, aka javidx9, ©OneLoneCoder 2019, 2020, 2021, 2022

*/

Expand Down Expand Up @@ -240,7 +240,7 @@ class TEST_Animate2D : public olc::PixelGameEngine

// If walk off screen, wrap around to other side
if (dude.pos.x > ScreenWidth()) dude.pos.x -= ScreenWidth();
if (dude.pos.y > ScreenHeight()) dude.pos.x -= ScreenHeight();
if (dude.pos.y > ScreenHeight()) dude.pos.y -= ScreenHeight();
if (dude.pos.x < 0) dude.pos.x += ScreenWidth();
if (dude.pos.y < 0) dude.pos.y += ScreenHeight();

Expand Down Expand Up @@ -275,4 +275,4 @@ int main()
if (demo.Construct(640, 480, 2, 2))
demo.Start();
return 0;
}
}