tutorial is now a modchart :)
This commit is contained in:
29
assets/preload/data/tutorial/modchart.lua
Normal file
29
assets/preload/data/tutorial/modchart.lua
Normal file
@ -0,0 +1,29 @@
|
||||
function start(song) -- do nothing
|
||||
|
||||
end
|
||||
|
||||
function update(elapsed)
|
||||
if difficulty == 2 and curStep > 400 then
|
||||
local currentBeat = (songPos / 1000)*(bpm/60)
|
||||
for i=0,7 do
|
||||
setActorX(_G['defaultStrum'..i..'X'] + 32 * math.sin((currentBeat + i*0.25) * math.pi), i)
|
||||
setActorY(_G['defaultStrum'..i..'Y'] + 32 * math.cos((currentBeat + i*0.25) * math.pi), i)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function beatHit(beat) -- do nothing
|
||||
|
||||
end
|
||||
|
||||
function stepHit(step) -- do nothing
|
||||
|
||||
end
|
||||
|
||||
function playerTwoTurn()
|
||||
tweenCameraZoom(1.3,(crochet * 4) / 1000)
|
||||
end
|
||||
|
||||
function playerOneTurn()
|
||||
tweenCameraZoom(1,(crochet * 4) / 1000)
|
||||
end
|
Reference in New Issue
Block a user