From ae654356f843bb42a3c72d57b528d87aa63cf66d Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 23 Feb 2021 10:30:16 -0500 Subject: Added a clipping mode (for testing!) This allows walking through solid objects. It can be enabled and disabled using StartClipping() and StopClipping() in the debug console. It should not be used in any actual scripts. --- 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 769a872..2e02edf 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp @@ -37,7 +37,8 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { return sprite.frames[sprite.animations[sprite.animationId].frameIndices[sprite.animationFrame]]; }, "persistent", &Sprite::persistent, - "paused", &Sprite::paused); + "paused", &Sprite::paused, + "clipping", &Sprite::clipping); engine_.new_usertype( "message", -- cgit 1.4.1