From 47b2322a8ea811ecee3faf651cecc26aae7b10b4 Mon Sep 17 00:00:00 2001 From: rebecca Date: Sun, 1 Mar 2026 00:07:50 +0000 Subject: motion --- motion.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'motion.lua') diff --git a/motion.lua b/motion.lua index 715d038..f99399e 100644 --- a/motion.lua +++ b/motion.lua @@ -4,10 +4,10 @@ for i,mod in ipairs{"kinetic","sensor","keyboard","glasses"} do end local vover = false -local vstrength = 1.16 -local hstrength = 4 +local vstrength = 0.16 +local hstrength = 2 local vdelta = 0.01 -local hdelta = 0.2 +local hdelta = 0.1 local yaw, pitch = 0,0 local canvas = p.canvas() @@ -32,6 +32,7 @@ parallel.waitForAny( elseif key == 262 then hstrength=hstrength-hdelta elseif key == 263 then hstrength=hstrength+hdelta elseif key == 67 then p.launch(yaw, pitch, hstrength) + elseif key == 88 then p.launch(yaw, 0, hstrength) elseif key == 86 then vover = not vover vtext.setAlpha(vover and 255 or 0) end -- cgit v1.2.3