SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
|
#include <SpriteComponent.hpp>
Public Member Functions | |
SpriteComponent (std::shared_ptr< Sprite > s, int maxFrames, int width, int height) | |
~SpriteComponent () | |
void | Update (float deltaTime) |
void | Render (SDL_Renderer *ren) |
![]() | |
Component () | |
virtual | ~Component () |
Public Attributes | |
unsigned int | m_currentFrame {0} |
Additional Inherited Members | |
![]() | |
GameObject * | entity |
The entitity to which this component belongs to. More... | |
A small class to demonstrate loading sprites. Sprite sheets are often used for loading characters, environments, icons, or other images in a game.
SpriteComponent::SpriteComponent | ( | std::shared_ptr< Sprite > | s, |
int | maxFrames, | ||
int | width, | ||
int | height | ||
) |
Constructor
SpriteComponent::~SpriteComponent | ( | ) |
Constructor
|
virtual |
unsigned int SpriteComponent::m_currentFrame {0} |