Skip to content

Commit

Permalink
bugfix, ggot animate2d working with creative commons mario png
Browse files Browse the repository at this point in the history
  • Loading branch information
GeraldRyan committed Mar 12, 2024
1 parent a7480f9 commit fa0ef26
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# GERALD's NOTES

Alight, to learn C++, to learn Graphics, to learn rendering and all the low level and fundamental stuff. There will be a lot of playing around.


________________
# ORIGINAL README

<p align="center">
<a href="https://discord.gg/WhwHUMV"> <img src="https://img.shields.io/discord/380484403458998276?logo=discord"> </a>
</p>
Expand Down
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
Binary file added test_animate
Binary file not shown.
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

0 comments on commit fa0ef26

Please sign in to comment.