aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/scenes
diff options
context:
space:
mode:
authorEugene Sandulenko2014-01-02 10:35:29 +0200
committerEugene Sandulenko2014-01-02 10:45:52 +0200
commitada85fbfcdf3013ef371b9f7df0b9ebe6cfaac8b (patch)
treec124f6e6ceec9209db1ab2fe010b235a16a900d7 /engines/fullpipe/scenes
parent2873bdb6af09dc76a49287a98ec7df0d8132408e (diff)
downloadscummvm-rg350-ada85fbfcdf3013ef371b9f7df0b9ebe6cfaac8b.tar.gz
scummvm-rg350-ada85fbfcdf3013ef371b9f7df0b9ebe6cfaac8b.tar.bz2
scummvm-rg350-ada85fbfcdf3013ef371b9f7df0b9ebe6cfaac8b.zip
FULLPIPE: Implement sceneHandler21_doWiggle()
Diffstat (limited to 'engines/fullpipe/scenes')
-rw-r--r--engines/fullpipe/scenes/scene21.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/fullpipe/scenes/scene21.cpp b/engines/fullpipe/scenes/scene21.cpp
index 2656a5f8c0..9b47fc5126 100644
--- a/engines/fullpipe/scenes/scene21.cpp
+++ b/engines/fullpipe/scenes/scene21.cpp
@@ -62,7 +62,17 @@ void scene21_initScene(Scene *sc) {
}
void sceneHandler21_doWiggle() {
- warning("STUB: sceneHandler21_doWiggle()");
+ g_vars->scene21_giraffeBottom->setOXY((int)(cos(g_vars->scene21_var06) * 4.0) + g_vars->scene21_giraffeBottom->_ox,
+ g_vars->scene21_giraffeBottom->_oy);
+
+ g_vars->scene21_var06 += 0.19635;
+
+ if (g_vars->scene21_var06 > 6.2831853) {
+ g_vars->scene21_var06 = 0;
+
+ if (!g_vars->scene21_giraffeBottom->_movement)
+ g_vars->scene21_giraffeBottom->setOXY(g_vars->scene21_giraffeBottomX, g_vars->scene21_giraffeBottomY);
+ }
}
int sceneHandler21(ExCommand *cmd) {