diff --git a/modules/types/render.lua b/modules/types/render.lua index 8fb1d6c..1fdb600 100644 --- a/modules/types/render.lua +++ b/modules/types/render.lua @@ -234,6 +234,15 @@ function Sprite:Destroy() end end +function Sprite:Resize(size) + for index, anim in next, self.quads do + for index, quad in next, anim do + quad.resize = Vector2(size, size) + quad.offset = quad.offset:Mul(size) + end + end +end + --- Destroys the image object. function Image:Destroy() for index, image in next, Images do diff --git a/stages/school.lua b/stages/school.lua index c466c39..b697118 100644 --- a/stages/school.lua +++ b/stages/school.lua @@ -23,14 +23,7 @@ function module.onCreate(song) local ZHENSHINI = Sprite("sprites/weeb/bgFreaks.png", "sprites/weeb/bgFreaks.json") ZHENSHINI.layer = -2 ZHENSHINI.position = Vector2(-800, 500) - - for index, anim in next, ZHENSHINI.quads do - for index, quad in next, anim do - quad.resize = Vector2(6.5, 6.5) - quad.offset = quad.offset:Mul(6.5) - end - end - + ZHENSHINI:Resize(6.5) ZHENSHINI:PlayAnimation((song == "Roses" or song == "Roses Pico" or song == "Roses Erect") and "BG fangirls dissuaded" or "BG girls group", 24, true) @@ -38,13 +31,7 @@ function module.onCreate(song) Trees.layer = 4 Trees.position = Vector2(-1800, -1500) Trees.modifier = 1.1 - - for index, anim in next, Trees.quads do - for index, quad in next, anim do - quad.resize = Vector2(8, 8) - quad.offset = quad.offset:Mul(8) - end - end + Trees:Resize(8) Trees:PlayAnimation("TREES", 24, true) @@ -52,14 +39,7 @@ function module.onCreate(song) Petals.layer = 3.5 Petals.position = Vector2(-850, 200) Petals.modifier = 1 - - for index, anim in next, Petals.quads do - for index, quad in next, anim do - quad.resize = Vector2(8, 8) - quad.offset = quad.offset:Mul(8) - end - end - + Petals:Resize(8) Petals:PlayAnimation("PETALS ALL", 24, true) local BackTrees = Image("images/weeb/weebTreesBack.png") diff --git a/stages/tankErect.lua b/stages/tankErect.lua index b477c14..cef6009 100644 --- a/stages/tankErect.lua +++ b/stages/tankErect.lua @@ -4,7 +4,7 @@ local itIsTimeToDrinkWater = love.math.random(40, 80) local skipNextBop = false --stupid shit that keeps my sanity going dont mind me -local secretEVILvariable = false +local secretEVILvariable = true local sipSippin = love.audio.newSource("sounds/week7/sip.ogg", "stream") sipSippin:setVolume(1000)