Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix an incorrect variable name in TEST_Animate2D.cpp #368

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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;
}
}