From a3e57292014b653a7556bfb8abf80bac05d93ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 15 Sep 2018 17:06:07 +0200 Subject: [PATCH] Update --- general.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/general.hpp b/general.hpp index a5b7169..39a0115 100644 --- a/general.hpp +++ b/general.hpp @@ -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()