literally all we had to do was copy paste our difficulty select code and swap some variables around why didnt we try this sooner
56 lines
2.1 KiB
Lua
56 lines
2.1 KiB
Lua
local myTypes = require("modules.types")
|
|
local upperBop, bottomBop, santa
|
|
|
|
local snow = {}
|
|
|
|
return {
|
|
onCreate = function(song)
|
|
local bg = myTypes.Image("images/mall/erect/bgWalls.png")
|
|
bg.position = myTypes.Vector2(-650, -440)
|
|
bg.resize = myTypes.Vector2(0.9, 0.9)
|
|
bg.modifier = 0.2
|
|
|
|
upperBop = myTypes.Sprite("sprites/mall/erect/upperBop.png", "sprites/mall/erect/upperBop.json")
|
|
upperBop:PlayAnimation("upperBop", 24, false)
|
|
upperBop.position = myTypes.Vector2(-240, -40)
|
|
upperBop.modifier = 0.33
|
|
upperBop.resize = myTypes.Vector2(0.85, 0.85)
|
|
|
|
local escalator = myTypes.Image("images/mall/erect/bgEscalator.png")
|
|
escalator.position = myTypes.Vector2(-1100, -540)
|
|
escalator.resize = myTypes.Vector2(0.9, 0.9)
|
|
escalator.modifier = 0.3
|
|
|
|
local christmasTree = myTypes.Image("images/mall/erect/christmasTree.png")
|
|
christmasTree.position = myTypes.Vector2(370, -250)
|
|
christmasTree.modifier = 0.4
|
|
|
|
local fog = myTypes.Image("images/mall/erect/white.png")
|
|
fog.position = myTypes.Vector2(-1100, 200)
|
|
fog.resize = myTypes.Vector2(0.9, 0.9)
|
|
fog.modifier = 0.85
|
|
|
|
for i = 1, 4 do --repeating cus fuck rectangles
|
|
local snowPart = myTypes.Image("images/mall/fgSnow.png")
|
|
snowPart.position = myTypes.Vector2(-1150 , 480 + i * 200)
|
|
|
|
snow[i] = snowPart
|
|
end
|
|
|
|
bottomBop = myTypes.Sprite("sprites/mall/erect/bottomBop.png", "sprites/mall/erect/bottomBop.json")
|
|
bottomBop:PlayAnimation("bottomBop", 24, false)
|
|
bottomBop.position = myTypes.Vector2(-350, 120)
|
|
bottomBop.modifier = 0.9
|
|
|
|
santa = myTypes.Sprite("sprites/mall/santa.png", "sprites/mall/santa.json")
|
|
santa:PlayAnimation("santa idle in fear", 24, false)
|
|
santa.position = myTypes.Vector2(-600, 140)
|
|
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
|
|
} |