From c1fc60c5a2a4b96b830afc29942648714944b9d7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 26 Feb 2021 18:54:38 -0500 Subject: Added sprite bobbing (for Lucas underwater) --- src/script_system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/script_system.cpp') diff --git a/src/script_system.cpp b/src/script_system.cpp index 92e6afe..e218969 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp @@ -40,7 +40,8 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { "persistent", &Sprite::persistent, "paused", &Sprite::paused, "clipping", &Sprite::clipping, - "cantCrouch", &Sprite::cantCrouch); + "cantCrouch", &Sprite::cantCrouch, + "bobsWhenNormal", &Sprite::bobsWhenNormal); engine_.new_usertype( "message", -- cgit 1.4.1