[Scummvm-cvs-logs] SF.net SVN: scummvm:[46920] scummvm/trunk/engines/teenagent
megath at users.sourceforge.net
megath at users.sourceforge.net
Sun Jan 3 11:30:38 CET 2010
Revision: 46920
http://scummvm.svn.sourceforge.net/scummvm/?rev=46920&view=rev
Author: megath
Date: 2010-01-03 10:30:38 +0000 (Sun, 03 Jan 2010)
Log Message:
-----------
improved walking animation once again
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/actor.cpp
scummvm/trunk/engines/teenagent/scene.cpp
Modified: scummvm/trunk/engines/teenagent/actor.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/actor.cpp 2010-01-03 08:27:33 UTC (rev 46919)
+++ scummvm/trunk/engines/teenagent/actor.cpp 2010-01-03 10:30:38 UTC (rev 46920)
@@ -32,7 +32,7 @@
//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 @@
}
if (index >= ARRAYSIZE(frames_left_right))
- index = 0;
+ index = 1;
s = frames + frames_left_right[index];
break;
case kActorUp:
@@ -92,7 +92,7 @@
}
if (index >= ARRAYSIZE(frames_up))
- index = 0;
+ index = 1;
s = frames + frames_up[index];
break;
case kActorDown:
@@ -104,7 +104,7 @@
}
if (index >= ARRAYSIZE(frames_down))
- index = 0;
+ index = 1;
s = frames + frames_down[index];
break;
default:
Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp 2010-01-03 08:27:33 UTC (rev 46919)
+++ scummvm/trunk/engines/teenagent/scene.cpp 2010-01-03 10:30:38 UTC (rev 46920)
@@ -672,7 +672,7 @@
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)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list