diff options
author | Vladimir Menshakov | 2010-01-03 10:30:38 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2010-01-03 10:30:38 +0000 |
commit | 1abbfb810f68ff24968bc4c56683272b2952a9c7 (patch) | |
tree | dfe6a07d997eda01edef5288b725bd6a19a412a7 /engines | |
parent | 715b48b987a5abd1052e3638673d3830b5fa1e21 (diff) | |
download | scummvm-rg350-1abbfb810f68ff24968bc4c56683272b2952a9c7.tar.gz scummvm-rg350-1abbfb810f68ff24968bc4c56683272b2952a9c7.tar.bz2 scummvm-rg350-1abbfb810f68ff24968bc4c56683272b2952a9c7.zip |
improved walking animation once again
svn-id: r46920
Diffstat (limited to 'engines')
-rw-r--r-- | engines/teenagent/actor.cpp | 8 | ||||
-rw-r--r-- | engines/teenagent/scene.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp index 332b399472..e9a29ff35d 100644 --- a/engines/teenagent/actor.cpp +++ b/engines/teenagent/actor.cpp @@ -32,7 +32,7 @@ Actor::Actor() : head_index(0) {} //idle animation lists at dseg: 0x6540 Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, bool render_head, uint zoom) { - const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; + const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, /* step */ 6, 7, 8, 9}; const uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, }; const uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, }; @@ -80,7 +80,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi } if (index >= ARRAYSIZE(frames_left_right)) - index = 0; + index = 1; s = frames + frames_left_right[index]; break; case kActorUp: @@ -92,7 +92,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi } if (index >= ARRAYSIZE(frames_up)) - index = 0; + index = 1; s = frames + frames_up[index]; break; case kActorDown: @@ -104,7 +104,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi } if (index >= ARRAYSIZE(frames_down)) - index = 0; + index = 1; s = frames + frames_down[index]; break; default: diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 5cf7f03ccc..9487bbfaa6 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -672,7 +672,7 @@ bool Scene::render() { uint zoom = lookupZoom(position.y); if (!path.empty()) { - int speed_x = ((teenagent.currentIndex() % 5) == 0? 16: 4) * zoom / 256, speed_y = 1 * zoom / 256; + int speed_x = ((teenagent.currentIndex() % 6) == 0? 8: 4) * zoom / 256, speed_y = 1 * zoom / 256; if (speed_x == 0) speed_x = 1; if (speed_y == 0) |