summaryrefslogtreecommitdiff
path: root/src/map.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/map.cpp
parentef1a1be4a87913ed5c50eb10401622275da1c842 (diff)
downloadmv-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.gz
mv-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.bz2
mv-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.tar.xz
mv-d0db8d81ebf49b0e3c9872152cb5749f701cb9d6.zip
Add new attributes for start position for ambient layers.
New attributes: posX, posY
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp
index b17e9ebdb..5dc1bfc0f 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -290,6 +290,8 @@ void Map::initializeAmbientLayers()
mForegrounds.push_back(new AmbientLayer(img,
getFloatProperty(name + "parallaxX", parallax),
getFloatProperty(name + "parallaxY", parallax),
+ getFloatProperty(name + "posX"),
+ getFloatProperty(name + "posY"),
getFloatProperty(name + "scrollX"),
getFloatProperty(name + "scrollY"),
getBoolProperty(name + "keepratio"),
@@ -317,6 +319,8 @@ void Map::initializeAmbientLayers()
mForegrounds.push_back(new AmbientLayer(img,
getFloatProperty(name + "parallaxX", parallax),
getFloatProperty(name + "parallaxY", parallax),
+ getFloatProperty(name + "posX"),
+ getFloatProperty(name + "posY"),
getFloatProperty(name + "scrollX"),
getFloatProperty(name + "scrollY"),
getBoolProperty(name + "keepratio"),