local module = {} local lastChange = 0 local amp = 50 local enabled = true local randoms = { math.random(60, 140), math.random(60, 140), math.random(60, 140), math.random(60, 140), } local realPositions = { 600, 679, 758, 837 } local ogPositions = {} local degree = -45 function module.onCreate() lastChange = 0 for index, receptor in next, module.shared.receptors do -- receptor.position.x = 100 -- receptor.position.y = 500 + 70 * (index - 1) -- receptor.rotation = degree end end function module.onUpdate(dt, elapsed) if enabled then -- for index, note in next, module.shared.notes do -- if note.mustPress then -- note.offset.x = math.sin(math.rad(degree)) * (note.position - elapsed) * module.shared.speed -- note.offset.y = (math.cos(math.rad(degree)) * (note.position - elapsed) * module.shared.speed) - (note.position - elapsed) -- -- note.sprite.rotation = degree -- end -- end -- for index, hold in next, module.shared.holds do -- if hold.mustPress then -- hold.offset.x = math.sin(math.rad(degree)) * (hold.position - elapsed) * module.shared.speed -- hold.offset.y = (math.cos(math.rad(degree)) * (hold.position - elapsed) * module.shared.speed) - (hold.position - elapsed) -- hold.sprite.rotation = degree -- end -- end local evil = math.cos(elapsed / 100) * 100 local evilb = math.sin(elapsed / 100) * 100 love.window.setPosition(325 + evil, 180 + evilb) end end function module.onClose() love.window.setPosition(325, 180) end return module