Path: blob/main/Scripts/Secrets/SecretImages2.txt
1319 views
//---------------Sonic CD Secret Images 2 Script--------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.Timer // Also used for fading67// States8#alias 0 : SECRETIMAGES2_SETUP9#alias 1 : SECRETIMAGES2_FADE_IN10#alias 2 : SECRETIMAGES2_CONTROL_DELAY11#alias 3 : SECRETIMAGES2_CONTROL_CHECK12#alias 4 : SECRETIMAGES2_EXIT1314// Presentation Stage15#alias 3 : STAGE_P_LEVELSELECT1617// Game Mode Aliases18#alias 0 : MODE_NOSAVE192021sub ObjectMain22switch Object.State23case SECRETIMAGES2_SETUP24if Object.Timer < 825Object.Timer++26else27Object.Timer = 28828SetActivePalette(1, 0, Screen.YSize)29Object.State++30end if31SetScreenFade(0, 0, 0, 255)32break3334case SECRETIMAGES2_FADE_IN35if Object.Timer > 036Object.Timer -= 1637else38PlayMusic(Options.Soundtrack)39Object.State++40end if41SetScreenFade(0, 0, 0, Object.Timer)42break4344case SECRETIMAGES2_CONTROL_DELAY45if Object.Timer < 6046Object.Timer++47else48Object.Timer = 049Object.State++50end if51break5253case SECRETIMAGES2_CONTROL_CHECK54if KeyPress[0].ButtonA == true55Object.State++56end if5758if KeyPress[0].ButtonB == true59Object.State++60end if6162if KeyPress[0].ButtonC == true63Object.State++64end if6566if KeyPress[0].Start == true67Object.State++68end if6970CheckTouchRect(0, 0, Screen.XSize, Screen.YSize)71if CheckResult > -172Object.State++73end if74break7576case SECRETIMAGES2_EXIT77if Object.Timer < 28878Object.Timer += 879Music.Volume -= 580else81SetActivePalette(0, 0, Screen.YSize)82StopMusic()83Options.GameMode = MODE_NOSAVE84Stage.ActiveList = PRESENTATION_STAGE85Stage.ListPos = STAGE_P_LEVELSELECT86LoadStage()87end if8889TempValue0 = Object.Timer90if TempValue0 > 25591TempValue0 = 25592end if93SetScreenFade(0, 0, 0, TempValue0)94break9596end switch97end sub9899100sub ObjectDraw101DrawRect(0, 0, Screen.XSize, Screen.YSize, 224, 224, 224, 255)102DrawSpriteScreenXY(0, Screen.CenterX, Screen.CenterY)103end sub104105106sub ObjectStartup107LoadSpriteSheet("Secrets/DD_R2.gif")108SpriteFrame(-160, -120, 320, 240, 0, 0) // #0 - Desert Dazzle109LoadPalette("DDZ_Pal.act", 1, 0, 0, 256)110end sub111112113// ========================114// Editor Subs115// ========================116117sub RSDKDraw118DrawSprite(0)119end sub120121122sub RSDKLoad123LoadSpriteSheet("Secrets/DD_R2.gif")124SpriteFrame(-160, -120, 320, 240, 0, 0) // #0 - Desert Dazzle125126SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")127end sub128129130