diff options
author | Eugene Sandulenko | 2013-12-31 21:07:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-12-31 21:16:10 +0200 |
commit | 0b2800f76420f74a50a881426304acc46924d013 (patch) | |
tree | 28cf6845aaf861deb6f14cd3866bc697bf40a947 /engines/fullpipe/scenes | |
parent | 5679a260407b74492e03aace9f880733ab56ffce (diff) | |
download | scummvm-rg350-0b2800f76420f74a50a881426304acc46924d013.tar.gz scummvm-rg350-0b2800f76420f74a50a881426304acc46924d013.tar.bz2 scummvm-rg350-0b2800f76420f74a50a881426304acc46924d013.zip |
FULLPIPE: Implement sceneHandler14_showBallFly()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r-- | engines/fullpipe/scenes/scene14.cpp | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene14.cpp b/engines/fullpipe/scenes/scene14.cpp index 0e9ddf22cf..96d66e8676 100644 --- a/engines/fullpipe/scenes/scene14.cpp +++ b/engines/fullpipe/scenes/scene14.cpp @@ -165,7 +165,42 @@ void sceneHandler14_manKickBall() { } void sceneHandler14_showBallFly() { - warning("STUB: sceneHandler14_showBallFly()"); + if (g_vars->scene14_var11.size()) { + g_vars->scene14_var10 = g_vars->scene14_var11.front(); + g_vars->scene14_var11.pop_front(); + } + + int x, y; + + if (g_vars->scene14_grandma->_movement) { + x = g_vars->scene14_grandma->_movement->_ox; + g_vars->scene14_var22 = x; + y = g_vars->scene14_grandma->_movement->_oy; + } else { + x = g_vars->scene14_var16; + y = g_vars->scene14_var17; + } + + x = x + 38; + y = y - 77; + + g_vars->scene14_var20 = 32; + + int dist = (g_vars->scene14_var14 - 16 - x) / 32; + int den = dist; + + if (!dist) + den = 1; + + g_vars->scene14_var22 = x + 32; + g_vars->scene14_var21 = (g_vars->scene14_var15 - 40 - dist * dist / 2 - y) / den; + g_vars->scene14_var23 = g_vars->scene14_var21 + y; + + g_vars->scene14_var10->show1(x + 32, g_vars->scene14_var21 + y, MV_BAL14_SPIN, 0); + g_vars->scene14_var10->_priority = 5; + g_vars->scene14_var10->startAnim(MV_BAL14_SPIN, 0, -1); + + g_vars->scene14_var05 = 1; } void sceneHandler14_grandmaJump() { |