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

Bugfix TEST_Animate2D.cpp #366

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.vs
/utilities/olcUTIL_AffineView.h
/utilities/olcUTIL_Maths.h
/bin
Binary file added assets/example_creative_commons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example2
Binary file not shown.
7 changes: 4 additions & 3 deletions examples/TEST_Animate2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@

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

*/


#define OLC_PGE_APPLICATION
#define OLC_IGNORE_VEC2D
#include "utilities/olcUTIL_Animate2D.h"
#include "olcPixelGameEngine.h"

#include "utilities/olcUTIL_Animate2D.h"

class TEST_Animate2D : public olc::PixelGameEngine
{
Expand Down Expand Up @@ -108,7 +109,7 @@ 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");
gfxAll.Load("./assets/example_creative_commons.png");

// 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
4 changes: 2 additions & 2 deletions utilities/olcUTIL_Animate2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

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


Versions
Expand All @@ -58,8 +58,8 @@

#pragma once

#include "olcPixelGameEngine.h"
#include "utilities/olcUTIL_Geometry2D.h"
#include "olcPixelGameEngine.h"
#include <unordered_map>

namespace olc::utils::Animate2D
Expand Down