From ada85fbfcdf3013ef371b9f7df0b9ebe6cfaac8b Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 2 Jan 2014 10:35:29 +0200 Subject: FULLPIPE: Implement sceneHandler21_doWiggle() --- engines/fullpipe/scenes/scene21.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/scenes') 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) { -- cgit v1.2.3