From d0db8d81ebf49b0e3c9872152cb5749f701cb9d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Feb 2014 18:58:31 +0300 Subject: Add new attributes for start position for ambient layers. New attributes: posX, posY --- src/resources/ambientlayer.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/resources/ambientlayer.cpp') 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), -- cgit v1.2.3-70-g09d2