This commit is contained in:
Miloslav Číž 2018-09-15 17:06:07 +02:00
parent 567ad36e55
commit a3e5729201

View file

@ -252,6 +252,8 @@ public:
Player() Player()
{ {
initCamera(&mCamera);
mCamera.position.x = 0; mCamera.position.x = 0;
mCamera.position.y = 0; mCamera.position.y = 0;
mCamera.direction = 0; mCamera.direction = 0;
@ -355,6 +357,11 @@ public:
class Sprite class Sprite
{ {
public: public:
const unsigned char *mImage;
Vector2D mPosition;
Unit mHeight;
Unit mPixelSize;
Sprite(const unsigned char *image, int16_t squareX, int16_t squareY, Unit z, Sprite(const unsigned char *image, int16_t squareX, int16_t squareY, Unit z,
Unit pixelSize): Unit pixelSize):
mImage(image), mImage(image),
@ -371,11 +378,6 @@ public:
mPosition.x = 0; mPosition.x = 0;
mPosition.y = 0; mPosition.y = 0;
} }
const unsigned char *mImage;
Vector2D mPosition;
Unit mHeight;
Unit mPixelSize;
}; };
void initGeneral() void initGeneral()