diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-19 22:18:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-19 22:18:58 +0300 |
commit | da73354d0c3d9cf8507fe9d88a5e778fdbb7fa44 (patch) | |
tree | d05a33c0a234c4a9386639bf742239f3cedd50d6 /src/resources/ambientlayer.h | |
parent | 41b8151a3f04bc1cb0127bdf5c10e0dd8275bad5 (diff) | |
download | plus-da73354d0c3d9cf8507fe9d88a5e778fdbb7fa44.tar.gz plus-da73354d0c3d9cf8507fe9d88a5e778fdbb7fa44.tar.bz2 plus-da73354d0c3d9cf8507fe9d88a5e778fdbb7fa44.tar.xz plus-da73354d0c3d9cf8507fe9d88a5e778fdbb7fa44.zip |
add new parallax attributes.
Old attribute: parallax
New attributes: parallaxX, parallaxY
Before parallax was used for x and y.
If parallaxX or parallaxY missing can be used parallax.
Diffstat (limited to 'src/resources/ambientlayer.h')
-rw-r--r-- | src/resources/ambientlayer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/ambientlayer.h b/src/resources/ambientlayer.h index 4ce13179e..ab8202ba7 100644 --- a/src/resources/ambientlayer.h +++ b/src/resources/ambientlayer.h @@ -43,7 +43,8 @@ class AmbientLayer final * @param keepRatio rescale the image to keep * the same ratio than in 800x600 resolution mode. */ - AmbientLayer(Image *const img, const float parallax, + AmbientLayer(Image *const img, + const float parallax, const float parallaxY, const float speedX, const float speedY, const bool keepRatio, const int mask); @@ -57,7 +58,8 @@ class AmbientLayer final private: Image *mImage; - float mParallax; + float mParallaxX; + float mParallaxY; float mPosX; /**< Current layer X position. */ float mPosY; /**< Current layer Y position. */ float mSpeedX; /**< Scrolling speed in X direction. */ |