From 7fa69be4e88f1fcf057871fec7e4503f50578465 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 1 Mar 2021 22:19:46 -0500 Subject: Started writing the Mixolydia scene! Looking pretty good so far. TODO: direction facing functions have inverted Y coordinate. confusion expression doesn't exist yet. rest of scene. --- src/script_system.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/script_system.cpp') diff --git a/src/script_system.cpp b/src/script_system.cpp index 931759d..a3686b4 100644 --- a/src/script_system.cpp +++ b/src/script_system.cpp @@ -44,7 +44,10 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { "cantCrouch", &Sprite::cantCrouch, "bobsWhenNormal", &Sprite::bobsWhenNormal, "animSlowdown", &Sprite::animSlowdown, - "enclosureZone", &Sprite::enclosureZone); + "enclosureZone", &Sprite::enclosureZone, + "movementSpeed", &Sprite::movementSpeed, + "solid", &Sprite::solid, + "behaviourType", &Sprite::behaviourType); engine_.new_usertype( "message", @@ -230,6 +233,8 @@ ScriptSystem::ScriptSystem(Game& game) : game_(game) { loadMapScripts(filename); }); + engine_.set_function("cardinalDirectionFacingPoint", &cardinalDirectionFacingPoint); + engine_.script_file("../res/scripts/common.lua"); } -- cgit 1.4.1