[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kgoldrunner/src
From: Mauricio Piacentini <mauricio () tabuleiro ! com>
Date: 2007-03-31 20:31:35
Message-ID: 1175373095.001660.13429.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 648613 by piacentini:
Finish implementing the two phase run/climb. The old theme should behave exactly the \
same, and the frame switching/update logic is also as close to the original as \
possible, to avoid introducing new bugs. All changes should only affect the selection \
of the pixmap to display.
CCMAIL: ianw2@optusnet.com.au
M +13 -1 kgrfigure.cpp
--- trunk/KDE/kdegames/kgoldrunner/src/kgrfigure.cpp #648612:648613
@@ -229,7 +229,13 @@
walkTimer->start ((WALKDELAY * NSPEED) / speed);
}
else {
- // End of 4-pixmap walk cycle: use alternate step graphics for next sequence
+ //stay at the current cycle graphics, for pending update
+ //In the previous version there was a reset to actualPixmap - 4, but for \
our two phase run we need better detection + if (hangAtPole())
+ actualPixmap = (alternateStepGraphics == true) ? LEFTCLIMB8 : \
LEFTCLIMB4; + else
+ actualPixmap = (alternateStepGraphics == true) ? LEFTWALK8 : \
LEFTWALK4; + // End of 4-pixmap walk cycle: set use alternate step graphics for \
next sequence alternateStepGraphics = !alternateStepGraphics;
if (canWalkLeft()) {
x--;
@@ -262,6 +268,12 @@
walkTimer->start ((WALKDELAY * NSPEED) / speed);
}
else {
+ //stay at the current cycle graphics, for pending update
+ //In the previous version there was a reset to actualPixmap - 4, but for \
our two phase run we need better detection + if (hangAtPole())
+ actualPixmap = (alternateStepGraphics == true) ? RIGHTCLIMB8 : \
RIGHTCLIMB4; + else
+ actualPixmap = (alternateStepGraphics == true) ? RIGHTWALK8 : \
RIGHTWALK4;
// End of 4-pixmap walk cycle: use alternate step graphics for next sequence
alternateStepGraphics = !alternateStepGraphics;
if (canWalkRight()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic