diff --git a/scene.lua b/scene.lua index 3384e8f..a2e4c74 100644 --- a/scene.lua +++ b/scene.lua @@ -15,4 +15,5 @@ InputConfigScene = require "scene.input_config" GameConfigScene = require "scene.game_config" TuningScene = require "scene.tuning" SettingsScene = require "scene.settings" +CreditsScene = require "scene.credits" TitleScene = require "scene.title" diff --git a/scene/credits.lua b/scene/credits.lua new file mode 100644 index 0000000..bd92bf8 --- /dev/null +++ b/scene/credits.lua @@ -0,0 +1,57 @@ +local CreditsScene = Scene:extend() + +CreditsScene.title = "Credits" + +function CreditsScene:new() + self.frames = 0 +end + +function CreditsScene:update() + self.frames = self.frames + 1 + if self.frames >= 2500 then + playSE("mode_decide") + scene = TitleScene() + 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) + love.graphics.print("Cambridge Credits", 320, 500 - self.frames) + love.graphics.print("THANK YOU\nFOR PLAYING!", 320, math.max(1500 - self.frames, 240)) + + love.graphics.setFont(font_3x5_3) + love.graphics.print("Game Developers", 320, 550 - self.frames) + love.graphics.print("Project Heads", 320, 640 - self.frames) + love.graphics.print("Other Game Developers", 320, 730 - self.frames) + love.graphics.print("Special Thanks", 320, 900 - self.frames) + love.graphics.print("- SashLilac / SpinTriple", 320, math.max(2000 - self.frames, 320)) + + love.graphics.setFont(font_3x5_2) + love.graphics.print("Oshisaure\nJoe Zeng", 320, 590 - self.frames) + love.graphics.print("Mizu\nHailey", 320, 680 - self.frames) + love.graphics.print("Axel Fox - Multimino\nMine - Tetra Online\nDr Ocelot - Tetra Legends\nFelicity / nightmareci - Shiromino\n2Tie - TGMsim\nPhoenix Flare - Master of Blocks", 320, 770 - self.frames) + love.graphics.print( + "RocketLanterns\nCylinderKnot\nHammrTime\nKirby703\nMattMayuga\nMyPasswordIsWeak\n" .. + "Nikki Karissa\noffwo\nsinefuse\nTetro48\nTimmSkiller\nuser74003\nAgentBasey\n" .. + "CheeZed_Fish\neightsixfivezero\nEricICX\ngizmo4487\nM1ssing0\nMarkGamed7794\n" .. + "pokemonfan1937\nSimon\nstratus\nZaptorZap\nThe Absolute PLUS Discord\nTetra Legends Discord\n" .. + "Tetra Online Discord\nMultimino Discord\nCambridge Discord\nAnd to you, the player!", + 320, 940 - self.frames + ) +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 + scene = TitleScene() + end +end + +return CreditsScene \ No newline at end of file diff --git a/scene/title.lua b/scene/title.lua index 90e7d97..6ce1580 100644 --- a/scene/title.lua +++ b/scene/title.lua @@ -6,6 +6,7 @@ TitleScene.restart_message = false local main_menu_screens = { ModeSelectScene, SettingsScene, + CreditsScene, ExitScene, }