fixed some indents

This commit is contained in:
Kade M 2021-04-13 23:38:09 -07:00 committed by GitHub
parent 611a7237cb
commit 1931d7e757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,10 +20,10 @@ end
function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918 function update (elapsed) -- example https://twitter.com/KadeDeveloper/status/1382178179184422918
local currentBeat = (songPos / 1000)*(bpm/60) local currentBeat = (songPos / 1000)*(bpm/60)
for i=0,7 do for i=0,7 do
_G['strum'..i..'X'] = _G['defaultStrum'..i..'X'] + 32 * math.sin((currentBeat + i*0.25) * math.pi) _G['strum'..i..'X'] = _G['defaultStrum'..i..'X'] + 32 * math.sin((currentBeat + i*0.25) * math.pi)
_G['strum'..i..'Y'] = _G['defaultStrum'..i..'Y'] + 32 * math.cos((currentBeat + i*0.25) * math.pi) _G['strum'..i..'Y'] = _G['defaultStrum'..i..'Y'] + 32 * math.cos((currentBeat + i*0.25) * math.pi)
end end
end end
function beatHit (beat) function beatHit (beat)
@ -31,7 +31,7 @@ function beatHit (beat)
end end
function stepHit (step) function stepHit (step)
-- do nothing -- do nothing
end end
print("Mod Chart script loaded :)") print("Mod Chart script loaded :)")
@ -41,9 +41,9 @@ Spinning Receptor Example
```lua ```lua
function update (elapsed) function update (elapsed)
for i=0,7 do for i=0,7 do
_G['strum'..i..'Angle'] = _G['strum'..i..'Angle'] + 15 _G['strum'..i..'Angle'] = _G['strum'..i..'Angle'] + 15
end end
end end
``` ```