Update
This commit is contained in:
parent
567ad36e55
commit
a3e5729201
1 changed files with 7 additions and 5 deletions
12
general.hpp
12
general.hpp
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue