2025-07-04 11:00:02 -04:00

67 lines
1.9 KiB
Lua

local module = {}
--WHAT THE FUCK DID YOU DO THE SONG NO LONGER ENDS 😭😭😭
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, sharedVars.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, sharedVars.notes do
-- if note.mustPress then
-- note.offset.x = math.sin(math.rad(degree)) * (note.position - elapsed) * sharedVars.speed
-- note.offset.y = (math.cos(math.rad(degree)) * (note.position - elapsed) * sharedVars.speed) - (note.position - elapsed)
-- -- note.sprite.rotation = degree
-- end
-- end
-- for index, hold in next, sharedVars.holds do
-- if hold.mustPress then
-- hold.offset.x = math.sin(math.rad(degree)) * (hold.position - elapsed) * sharedVars.speed
-- hold.offset.y = (math.cos(math.rad(degree)) * (hold.position - elapsed) * sharedVars.speed) - (hold.position - elapsed)
-- hold.sprite.rotation = degree
-- end
-- end
local evil = math.cos(elapsed / 100) * 100
local evilb = math.sin(elapsed / 100) * 100
--ENTAR WHY DID YOU LEAVE THIS IN 😭😭😭
--love.window.setPosition(325 + evil, 180 + evilb)
end
end
function module.onClose()
love.window.setPosition(325, 180)
end
return module