summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-11 14:15:59 +0200
committermanuel <manuel@mausz.at>2011-04-11 14:15:59 +0200
commitc68e77cac9558316ac16d58c0f6b888599ab021a (patch)
tree556b4c36fb325a117dd2ff27c472689a82c1a156 /pacman-c++/actor.cpp
parent3c2e420d3418f326e091c67673f9eec610e45fc2 (diff)
downloadfoop-c68e77cac9558316ac16d58c0f6b888599ab021a.tar.gz
foop-c68e77cac9558316ac16d58c0f6b888599ab021a.tar.bz2
foop-c68e77cac9558316ac16d58c0f6b888599ab021a.zip
- make moving animation a bit smoother (on my computer at least)
- make animation stop after getting blocked
Diffstat (limited to 'pacman-c++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index a97232f..ab860bc 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -89,7 +89,7 @@ QSequentialAnimationGroup *Actor::setupEatingAnimation(Actor::Movement direction
89 fadeout->setEndValue(false); 89 fadeout->setEndValue(false);
90 90
91 QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving); 91 QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving);
92 move->setDuration(Constants::tick - 50); //TODO 92 move->setDuration(Constants::tick - 30); //TODO
93 move->setEndValue(QPoint(0, 0)); 93 move->setEndValue(QPoint(0, 0));
94 } 94 }
95 95