diff options
| author | rebecca <ubq323@ubq323.website> | 2026-03-01 00:07:50 +0000 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-03-01 00:07:50 +0000 |
| commit | 47b2322a8ea811ecee3faf651cecc26aae7b10b4 (patch) | |
| tree | 1dcd9a7f8adb08b19e1b2672bcf663b533ce3bed /motion.lua | |
| parent | 4b87ebf9263215ae9a9a03d81b474bcf8b43465c (diff) | |
motion
Diffstat (limited to 'motion.lua')
| -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 |
