Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/.vs
/utilities/olcUTIL_AffineView.h
/utilities/olcUTIL_Maths.h
/utilities/olcUTIL_GameMode.h
/utilities/olcUTIL_Sparkles.h
2 changes: 2 additions & 0 deletions contributions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ These source code contributions enhance the functionality of the olcPixelGameEng
* https://github.com/Oso-Grande/olcPGEX_Font
* Arc Drawing
* https://github.com/AlterEgoIV/olcPGEX_Arc
* Audio/Video Playback
* https://github.com/Piratux/olcPGEX_Media

## MacOS Support
* These will potentially be absorbed into main build
Expand Down
9 changes: 6 additions & 3 deletions examples/TEST_Animate2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
License (OLC-3)
~~~~~~~~~~~~~~~

Copyright 2018 - 2022 OneLoneCoder.com
Copyright 2018 - 2025 OneLoneCoder.com

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -45,7 +45,10 @@

Author
~~~~~~
David Barr, aka javidx9, �OneLoneCoder 2019, 2020, 2021, 2022
David Barr, aka javidx9, �OneLoneCoder 2019, 2020, 2021, 2022, 2023, 2024, 2025

Version
1.01 BugFix - Thanks ya0guang!

*/

Expand Down Expand Up @@ -240,7 +243,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
Loading