[Add] Being super lazy, but I have done something..
This commit is contained in:
		
							parent
							
								
									0a0dbd18c3
								
							
						
					
					
						commit
						61895f84af
					
				| @ -1,11 +1,11 @@ | |||||||
| #include "Actor.h" | #include "Actor.h" | ||||||
| 
 | 
 | ||||||
| Actor::Actor(void) : VELOCITY(10.0f) { | Actor::Actor(void) : VELOCITY(10.0f) { | ||||||
| 
 |   _actor = new Sprite(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Actor::~Actor(void) { | Actor::~Actor(void) { | ||||||
| 
 |   delete _actor; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void Actor::LoadSprite(const char* filename, float w, float h) { | void Actor::LoadSprite(const char* filename, float w, float h) { | ||||||
|  | |||||||
| @ -1,5 +1,8 @@ | |||||||
| #pragma once | #pragma once | ||||||
|  | #include <SDL/SDL.h> | ||||||
|  | 
 | ||||||
| #include "../Sprite/Sprite.h" | #include "../Sprite/Sprite.h" | ||||||
|  | #include "../Math/Vec2.h" | ||||||
| 
 | 
 | ||||||
| class Actor { | class Actor { | ||||||
| public: | public: | ||||||
| @ -50,4 +53,6 @@ private: | |||||||
|   float h; |   float h; | ||||||
| 
 | 
 | ||||||
|   Sprite* _actor; |   Sprite* _actor; | ||||||
|  |   Vec2 _spriteVector[4][4]; | ||||||
|  | 
 | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Rtch90
						Rtch90