summaryrefslogtreecommitdiff
path: root/src/resources/ambientlayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 18:58:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 18:58:31 +0300
commitd0db8d81ebf49b0e3c9872152cb5749f701cb9d6 (patch)
tree4af10a2849ec74e593b568d906370ca4483f8940 /src/resources/ambientlayer.cpp
parentef1a1be4a87913ed5c50eb10401622275da1c842 (diff)
downloadmanaplus-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.gz
manaplus-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.bz2
manaplus-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.xz
manaplus-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.zip
Add new attributes for start position for ambient layers.
New attributes: posX, posY
Diffstat (limited to 'src/resources/ambientlayer.cpp')
-rw-r--r--src/resources/ambientlayer.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/resources/ambientlayer.cpp b/src/resources/ambientlayer.cpp
index c9574c589..b839064be 100644
--- a/src/resources/ambientlayer.cpp
+++ b/src/resources/ambientlayer.cpp
@@ -32,14 +32,19 @@
#include "debug.h"
AmbientLayer::AmbientLayer(Image *const img,
- const float parallaxX, const float parallaxY,
- const float speedX, const float speedY,
- const bool keepRatio, const int mask) :
+ const float parallaxX,
+ const float parallaxY,
+ const float posX,
+ const float posY,
+ const float speedX,
+ const float speedY,
+ const bool keepRatio,
+ const int mask) :
mImage(img),
mParallaxX(parallaxX),
mParallaxY(parallaxY),
- mPosX(0),
- mPosY(0),
+ mPosX(posX),
+ mPosY(posY),
mSpeedX(speedX),
mSpeedY(speedY),
mMask(mask),