2020-12-20 09:28:34 -06:00
|
|
|
local CreditsScene = Scene:extend()
|
|
|
|
|
|
|
|
CreditsScene.title = "Credits"
|
|
|
|
|
|
|
|
function CreditsScene:new()
|
|
|
|
self.frames = 0
|
2020-12-21 14:48:34 -06:00
|
|
|
switchBGM("credit_roll", "gm3")
|
2020-12-20 09:28:34 -06:00
|
|
|
end
|
|
|
|
|
|
|
|
function CreditsScene:update()
|
2021-01-06 15:10:01 -06:00
|
|
|
if love.window.hasFocus() then
|
|
|
|
self.frames = self.frames + 1
|
|
|
|
end
|
2020-12-21 14:48:34 -06:00
|
|
|
if self.frames >= 4200 then
|
2020-12-20 09:28:34 -06:00
|
|
|
playSE("mode_decide")
|
|
|
|
scene = TitleScene()
|
2020-12-21 15:00:03 -06:00
|
|
|
switchBGM(nil)
|
2020-12-21 14:48:34 -06:00
|
|
|
elseif self.frames == 3600 then
|
|
|
|
fadeoutBGM(2)
|
2020-12-20 09:28:34 -06:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function CreditsScene:render()
|
|
|
|
love.graphics.setColor(1, 1, 1, 1)
|
|
|
|
love.graphics.draw(
|
|
|
|
backgrounds[19],
|
|
|
|
0, 0, 0,
|
|
|
|
0.5, 0.5
|
|
|
|
)
|
|
|
|
|
|
|
|
love.graphics.setFont(font_3x5_4)
|
2020-12-21 14:48:34 -06:00
|
|
|
love.graphics.print("Cambridge Credits", 320, 500 - self.frames / 2)
|
2021-03-28 09:03:27 -05:00
|
|
|
love.graphics.print("THANK YOU\nFOR PLAYING!", 320, math.max(1770 - self.frames / 2, 240))
|
2020-12-20 09:28:34 -06:00
|
|
|
|
|
|
|
love.graphics.setFont(font_3x5_3)
|
2020-12-21 14:48:34 -06:00
|
|
|
love.graphics.print("Game Developers", 320, 550 - self.frames / 2)
|
|
|
|
love.graphics.print("Project Heads", 320, 640 - self.frames / 2)
|
|
|
|
love.graphics.print("Other Game Developers", 320, 730 - self.frames / 2)
|
2021-04-01 13:11:38 -05:00
|
|
|
love.graphics.print("Special Thanks", 320, 950 - self.frames / 2)
|
|
|
|
love.graphics.print("- SashLilac / TS3 / Milla", 320, math.max(1850 - self.frames / 2, 320))
|
2020-12-20 09:28:34 -06:00
|
|
|
|
|
|
|
love.graphics.setFont(font_3x5_2)
|
2020-12-21 14:48:34 -06:00
|
|
|
love.graphics.print("Oshisaure\nJoe Zeng", 320, 590 - self.frames / 2)
|
|
|
|
love.graphics.print("Mizu\nHailey", 320, 680 - self.frames / 2)
|
2021-03-28 09:03:27 -05:00
|
|
|
love.graphics.print(
|
|
|
|
"Axel Fox - Multimino\nMine - Tetra Online\nDr Ocelot - Tetra Legends\n" ..
|
|
|
|
"Felicity / nightmareci - Shiromino\n2Tie - TGMsim\nPhoenix Flare - Master of Blocks\n" ..
|
2021-04-01 13:11:38 -05:00
|
|
|
"RayRay26 - Spirit Drop\nosk - TETR.IO\nMarkGamed7794 - Picoris 2",
|
2021-03-28 09:03:27 -05:00
|
|
|
320, 770 - self.frames / 2
|
|
|
|
)
|
2020-12-20 09:28:34 -06:00
|
|
|
love.graphics.print(
|
|
|
|
"RocketLanterns\nCylinderKnot\nHammrTime\nKirby703\nMattMayuga\nMyPasswordIsWeak\n" ..
|
|
|
|
"Nikki Karissa\noffwo\nsinefuse\nTetro48\nTimmSkiller\nuser74003\nAgentBasey\n" ..
|
2021-04-01 13:11:38 -05:00
|
|
|
"CheeZed_Fish\neightsixfivezero\nEricICX\ngizmo4487\nM1ssing0\n" ..
|
2021-02-28 17:40:53 -06:00
|
|
|
"pokemonfan1937\nSimon\nstratus\nZaptorZap\nArchina\nOliver\ncolour_thief\n" ..
|
|
|
|
"Caithness\nkdex\nzid\nsaphie\nSuper302\nAurora\nswitchpalacecorner\nKitaru\n" ..
|
|
|
|
"JBroms\nMany more I definitely missed!\n" ..
|
|
|
|
"The Absolute PLUS Discord\nTetra Legends Discord\nTetra Online Discord\n" ..
|
2021-03-28 09:03:27 -05:00
|
|
|
"Multimino Discord\nHard Drop Discord\nCambridge Discord\n" ..
|
2021-02-28 17:40:53 -06:00
|
|
|
"And to you, the player!",
|
2021-04-01 13:11:38 -05:00
|
|
|
320, 990 - self.frames / 2
|
2020-12-20 09:28:34 -06:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
function CreditsScene:onInputPress(e)
|
|
|
|
if e.input == "menu_decide" or e.scancode == "return" or
|
|
|
|
e.input == "menu_back" or e.scancode == "delete" or e.scancode == "backspace" then
|
2020-12-21 15:00:03 -06:00
|
|
|
scene = TitleScene()
|
|
|
|
switchBGM(nil)
|
2020-12-20 09:28:34 -06:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return CreditsScene
|