76 lines
2.5 KiB
Lua
76 lines
2.5 KiB
Lua
|
|
local upperBop, bottomBop, santa
|
|
|
|
local snow = {}
|
|
|
|
local dirs = {
|
|
"LEFT",
|
|
"DOWN",
|
|
"UP",
|
|
"RIGHT"
|
|
}
|
|
|
|
return {
|
|
onCreate = function(song)
|
|
local bg = Image("images/mall/erect/bgWalls.png")
|
|
bg.position = Vector2(-1000, -440)
|
|
bg.resize = Vector2(0.9, 0.9)
|
|
bg.modifier = 0.2
|
|
bg.layer = -10
|
|
|
|
upperBop = Sprite("sprites/mall/erect/upperBop.png", "sprites/mall/erect/upperBop.json")
|
|
upperBop:PlayAnimation("upperBop", 24, false)
|
|
upperBop.position = Vector2(-480, -80)
|
|
upperBop.modifier = 0.33
|
|
upperBop.resize = Vector2(0.85, 0.85)
|
|
upperBop.layer = -9
|
|
|
|
local escalator = Image("images/mall/erect/bgEscalator.png")
|
|
escalator.position = Vector2(-1100, -540)
|
|
escalator.resize = Vector2(0.9, 0.9)
|
|
escalator.modifier = 0.3
|
|
escalator.layer = -8
|
|
|
|
local christmasTree = Image("images/mall/erect/christmasTree.png")
|
|
christmasTree.position = Vector2(370, -250)
|
|
christmasTree.modifier = 0.4
|
|
christmasTree.layer = -7
|
|
|
|
local fog = Image("images/mall/erect/white.png")
|
|
fog.position = Vector2(-1100, 200)
|
|
fog.resize = Vector2(0.9, 0.9)
|
|
fog.modifier = 0.85
|
|
fog.layer = -6
|
|
|
|
for i = 1, 4 do --repeating cus fuck rectangles
|
|
local snowPart = Image("images/mall/fgSnow.png")
|
|
snowPart.position = Vector2(-1150 , 480 + i * 200)
|
|
snowPart.layer = -5
|
|
|
|
snow[i] = snowPart
|
|
end
|
|
|
|
bottomBop = Sprite("sprites/mall/erect/bottomBop.png", "sprites/mall/erect/bottomBop.json")
|
|
bottomBop:PlayAnimation("bottomBop", 24, false)
|
|
bottomBop.position = Vector2(-700, 120)
|
|
bottomBop.modifier = 0.9
|
|
bottomBop.layer = -3
|
|
|
|
santa = Sprite("sprites/mall/santa.png", "sprites/mall/santa.json")
|
|
santa:PlayAnimation("santa idle in fear", 24, false)
|
|
santa.position = Vector2(-1000, 280)
|
|
santa.layer = -2
|
|
end,
|
|
onBeat = function(beat)
|
|
if beat % 2 == 0 then
|
|
upperBop:PlayAnimation("upperBop", 24, false)
|
|
bottomBop:PlayAnimation("bottomBop", 24, false)
|
|
santa:PlayAnimation("santa idle in fear", 24, false)
|
|
end
|
|
end,
|
|
opponentNoteHit = function(note)
|
|
if note.raw.k == "mom" then
|
|
sharedVars.characters.dad:PlayAnimation(string.format("sing%s-alt", dirs[note.direction]))
|
|
end
|
|
end
|
|
} |