require "common.globals" require "common.class" local Page = require "api.page.page" local splash1BgColor = {182, 0, 20} local splash1Logo = gfx.CreateSkinImage("titlescreen/splash/ksm.png", 0) local splash1LogoWidth, splash1LogoHeight = gfx.ImageSize(splash1Logo) local function splash1(deltaTime) local splash1LogoXOffset = (Dim.design.width - splash1LogoWidth) / 2 local splash1LogoYOffset = (Dim.design.height - splash1LogoHeight) / 2 calcFade(splash1Duration) gfx.BeginPath() gfx.Rect(0, 0, Dim.design.width, Dim.design.height) gfx.FillColor(splash1BgColor[1], splash1BgColor[2], splash1BgColor[3], fadeAlpha) gfx.Fill() gfx.BeginPath() gfx.ImageRect(splash1LogoXOffset, splash1LogoYOffset, splash1LogoWidth, splash1LogoHeight, splash1Logo, fadeAlpha / 255, 0) gfx.BeginPath() gfx.LoadSkinFont("segoeui.ttf") gfx.FillColor(255, 255, 255, fadeAlpha) gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_BOTTOM) gfx.FontSize(28) gfx.Text("Press START to skip...", 10, Dim.design.height - 10) if (splashTimer < 0) then splashState = "splash2" splash1SfxPlayed = false splashTimer = 0 return end if splashTimer == 0 then splashTimer = splash1Duration end if not splash1SfxPlayed then game.PlaySample("titlescreen/splash/splash1.wav") splash1SfxPlayed = true end splashTimer = splashTimer - deltaTime end ---@class KShootManiaPage : Page local KShootManiaPage = { } ---Create a new KShootManiaPage instance ---@param params? KShootManiaPage function KShootManiaPage.new(params) local self = CreateInstance(KShootManiaPage, params, Page) return self end return KShootManiaPage