Skip to content
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
8 changes: 6 additions & 2 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 @@ -108,7 +108,11 @@ class TEST_Animate2D : public olc::PixelGameEngine
// For this appliaction I have a single image that contains
// 28x2 unique characters, each character contains 8 animations of 3
// frames each. Each frame is 26x36 pixels
gfxAll.Load("./assets/MegaSprite1.png");
if (gfxAll.Load("./assets/MegaSprite1.png") != olc::rcode::OK)
{
std::cout << "Could not load ./assets/MegaSprite1.png\n";
return false;
}

// Thats A LOT of individual graphics, but they all follow a similar pattern
// because the asset was created usefully (take note certain popular asset creators)
Expand Down