From da0913771538fd9b1ca538615fd9aa0388608466 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 9 May 2020 09:42:18 -0400 Subject: Merge audio; handle mouse events --- Scripts/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Scripts') diff --git a/Scripts/init.lua b/Scripts/init.lua index 572f722..66fbcb1 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -111,6 +111,11 @@ npc = { b = 1.0, strength = 0.5 }, + EventListeners = { + MousePressed = function(self, x, y, button) + self.Velocity.y = 3.0; + end + }, Idle = function(self) if (self.visibleTick == 0) then self.visibleTick = math.random(40, 60) -- cgit v1.2.3