diff --git a/src/Actor/Actor.cpp b/src/Actor/Actor.cpp index c5467e9..31316a6 100644 --- a/src/Actor/Actor.cpp +++ b/src/Actor/Actor.cpp @@ -1,11 +1,11 @@ #include "Actor.h" Actor::Actor(void) : VELOCITY(10.0f) { - + _actor = new Sprite(); } Actor::~Actor(void) { - + delete _actor; } void Actor::LoadSprite(const char* filename, float w, float h) { diff --git a/src/Actor/Actor.h b/src/Actor/Actor.h index 7c0b82b..62bc4c9 100644 --- a/src/Actor/Actor.h +++ b/src/Actor/Actor.h @@ -1,5 +1,8 @@ #pragma once +#include + #include "../Sprite/Sprite.h" +#include "../Math/Vec2.h" class Actor { public: @@ -50,4 +53,6 @@ private: float h; Sprite* _actor; + Vec2 _spriteVector[4][4]; + };