29 lines
622 B
Lua
29 lines
622 B
Lua
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 |