diff options
| -rw-r--r-- | motion.lua | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
