[Scummvm-cvs-logs] scummvm master -> 7970cddb1f81d584917376838c9d43b7118c852e
urukgit
urukgit at users.noreply.github.com
Wed Feb 19 19:52:42 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7970cddb1f AVALANCHE: Implement ShootEmUp::peopleRunning().
Commit: 7970cddb1f81d584917376838c9d43b7118c852e
https://github.com/scummvm/scummvm/commit/7970cddb1f81d584917376838c9d43b7118c852e
Author: uruk (koppirnyo at gmail.com)
Date: 2014-02-19T10:52:07-08:00
Commit Message:
AVALANCHE: Implement ShootEmUp::peopleRunning().
Changed paths:
engines/avalanche/shootemup.cpp
diff --git a/engines/avalanche/shootemup.cpp b/engines/avalanche/shootemup.cpp
index 5a49012..edd4d7a 100644
--- a/engines/avalanche/shootemup.cpp
+++ b/engines/avalanche/shootemup.cpp
@@ -439,7 +439,36 @@ void ShootEmUp::bumpFolk() {
}
void ShootEmUp::peopleRunning() {
- warning("STUB: ShootEmUp::peopleRunning()");
+ if (_count321 != 0)
+ return;
+
+ for (int i = 0; i < 4; i++) {
+ if (_running[i]._x != kFlag) {
+ if (((_running[i]._y + _running[i]._iy) <= 53) || ((_running[i]._y + _running[i]._iy) >= 120))
+ _running[i]._iy = -(_running[i]._iy);
+
+ byte frame = 0;
+ if (_running[i]._ix < 0)
+ frame = _running[i]._frame;
+ else
+ frame = _running[i]._frame + 7;
+ define(_running[i]._x, _running[i]._y, frame, 0, 0, 1, false, true);
+
+ if (_running[i]._frameDelay == 0) {
+ _running[i]._frame++;
+ if (_running[i]._frame == _running[i]._tooHigh)
+ _running[i]._frame = _running[i]._lowest;
+ _running[i]._frameDelay = kFrameDelayMax;
+ _running[i]._y += _running[i]._iy;
+ } else
+ _running[i]._frameDelay--;
+
+ if (((_running[i]._x + _running[i]._ix) <= 0) || ((_running[i]._x + _running[i]._ix) >= 620))
+ turnAround(i, true);
+
+ _running[i]._x += _running[i]._ix;
+ }
+ }
}
void ShootEmUp::updateTime() {
More information about the Scummvm-git-logs
mailing list