48 lines
1.6 KiB
Lua
48 lines
1.6 KiB
Lua
local myTypes = require("modules.types")
|
|
|
|
local dancers = {}
|
|
|
|
local curSong
|
|
|
|
return {
|
|
onCreate = function(song)
|
|
curSong = song
|
|
|
|
dancers = {}
|
|
|
|
local sunset = myTypes.Image("images/limo/limoSunset.png", .2)
|
|
sunset.position = myTypes.Vector2(-1000, -100)
|
|
sunset.resize = myTypes.Vector2(1.5, 1.5)
|
|
|
|
local road = myTypes.Sprite("sprites/limo/limoRoad.png", "sprites/limo/limoRoad.json")
|
|
road:PlayAnimation("COOLROAD", 24, true)
|
|
road.position = myTypes.Vector2(-300, 230)
|
|
road.modifier = 0.6
|
|
|
|
local limobg = myTypes.Sprite("sprites/limo/bgLimo.png", "sprites/limo/bgLimo.json")
|
|
limobg:PlayAnimation("background limo pink", 24, true)
|
|
limobg.position = myTypes.Vector2(-100, 350)
|
|
limobg.modifier = .6
|
|
|
|
local limoDriver = myTypes.Sprite("sprites/limo/limoDrive.png", "sprites/limo/limoDrive.json")
|
|
limoDriver:PlayAnimation("Limo stage", 24, true)
|
|
limoDriver.position = myTypes.Vector2(-300, 450)
|
|
|
|
for i = 1, 5 do
|
|
local dancer = myTypes.Sprite("sprites/limo/limoDancer.png", "sprites/limo/limoDancer.json")
|
|
dancer.modifier = .6
|
|
dancer:PlayAnimation("bg dancer sketch PINK", 24, false)
|
|
dancer.position = myTypes.Vector2(-10 + i * 150, 155)
|
|
|
|
dancers[i] = dancer
|
|
end
|
|
end,
|
|
|
|
onBeat = function(beat)
|
|
if beat % 4 == 0 then
|
|
for index, dancer in next, dancers do
|
|
dancer:PlayAnimation("bg dancer sketch PINK", 24, false)
|
|
end
|
|
end
|
|
end
|
|
} |