Path: blob/master/Sonic 2/Scripts/Credits/CreditsLogo.txt
1480 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Credits Logo Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Aliases9// ========================1011private alias object.value0 : object.timer12private alias object.value1 : object.logoFrame13private alias object.value2 : object.numberFrame1415// States16private alias 0 : CREDITSLOGO_SETUP17private alias 1 : CREDITSLOGO_SHINEDELAY18private alias 2 : CREDITSLOGO_LOGOSHINE19private alias 3 : CREDITSLOGO_NUMBERSHINE20private alias 4 : CREDITSLOGO_SHOWLOGO2122// ========================23// Tables24// ========================2526private table CreditsLogo_logoFrameTable270, 2, 3, 4, 3, 2, 028end table2930private table CreditsLogo_numberFrameTable310, 5, 6, 7, 8, 7, 6, 5, 032end table333435// ========================36// Events37// ========================3839event ObjectUpdate40switch object.state41case CREDITSLOGO_SETUP42GetTableValue(object.logoFrame, 0, CreditsLogo_logoFrameTable)43GetTableValue(object.numberFrame, 0, CreditsLogo_numberFrameTable)44object.state++45break4647case CREDITSLOGO_SHINEDELAY48object.timer++49if object.timer == 9050object.timer = 051object.frame = 052object.state++53end if54break5556case CREDITSLOGO_LOGOSHINE57object.timer++58if object.timer == 259object.timer = 060object.frame++61GetTableValue(object.logoFrame, object.frame, CreditsLogo_logoFrameTable)62if object.frame == 663object.frame = 064object.state++65end if66end if67break6869case CREDITSLOGO_NUMBERSHINE70object.timer++71if object.timer == 272object.timer = 073object.frame++74GetTableValue(object.numberFrame, object.frame, CreditsLogo_numberFrameTable)75if object.frame == 976object.frame = 077object.state++78end if79end if80break8182case CREDITSLOGO_SHOWLOGO83break84end switch85end event868788event ObjectDraw89DrawSprite(1) // SONIC 290DrawSprite(object.logoFrame) // SONIC Shine91DrawSprite(object.numberFrame) // 2 Shine92end event939495event ObjectStartup96LoadSpriteSheet("Ending/Credits.gif")97SpriteFrame(0, 0, 0, 0, 141, 94) // Blank - #098SpriteFrame(-60, -20, 120, 40, 135, 53) // SONIC 2 - #199SpriteFrame(-63, -22, 81, 38, 141, 94) // SONIC Shine - Frame 1 - #2100SpriteFrame(-63, -22, 81, 38, 141, 133) // SONIC Shine - Frame 2 - #3101SpriteFrame(-63, -22, 81, 38, 141, 172) // SONIC Shine - Frame 3 - #4102SpriteFrame(28, -20, 32, 39, 223, 94) // "2" Shine - Frame 1 - #5103SpriteFrame(28, -20, 32, 39, 223, 134) // "2" Shine - Frame 2 - #6104SpriteFrame(28, -20, 32, 39, 223, 174) // "2" Shine - Frame 3 - #7105SpriteFrame(28, -20, 32, 39, 223, 214) // "2" Shine - Frame 4 - #8106end event107108109// ========================110// Editor Events111// ========================112113event RSDKDraw114DrawSprite(1) // SONIC 2115end event116117118event RSDKLoad119LoadSpriteSheet("Ending/Credits.gif")120SpriteFrame(-60, -20, 120, 40, 135, 53) // "SONIC 2"121122SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")123end event124125126