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