Path: blob/main/Scripts/R3/SpikeDebris.txt
1319 views
//----------------Sonic CD Spike Debris Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value0 : Object.XVelocity6#alias Object.Value1 : Object.YVelocity78sub ObjectMain9Object.XPos += Object.XVelocity10Object.YPos += Object.YVelocity11Object.YVelocity += 0x40001213if Object.OutOfBounds == true14Object.Type = TypeName[Blank Object]15end if16end sub171819sub ObjectDraw20DrawSprite(Object.PropertyValue)21end sub222324sub ObjectStartup25LoadSpriteSheet("Global/Items3.gif")2627SpriteFrame(-8, -8, 16, 16, 50, 1) // #0 - Spike Facing Up Top Left Chunk28SpriteFrame(-8, -8, 16, 16, 66, 1) // #1 - Spike Facing Up Top Right Chunk29SpriteFrame(-8, -8, 16, 16, 50, 17) // #2 - Spike Facing Up Bottom Left Chunk30SpriteFrame(-8, -8, 16, 16, 66, 17) // #3 - Spike Facing Up Bottom Right Chunk3132SpriteFrame(-8, -8, 16, 16, 50, 34) // #4 - Spike Facing Right Top Left Chunk33SpriteFrame(-8, -8, 16, 16, 66, 34) // #5 - Spike Facing Right Top Right Chunk34SpriteFrame(-8, -8, 16, 16, 50, 50) // #6 - Spike Facing Right Bottom Left Chunk35SpriteFrame(-8, -8, 16, 16, 66, 50) // #7 - Spike Facing Right Bottom Right Chunk3637SpriteFrame(-8, -8, 16, 16, 50, 67) // #8 - Spike Facing Left Top Left Chunk38SpriteFrame(-8, -8, 16, 16, 66, 67) // #9 - Spike Facing Left Top Right Chunk39SpriteFrame(-8, -8, 16, 16, 50, 83) // #10 - Spike Facing Left Bottom Left Chunk40SpriteFrame(-8, -8, 16, 16, 66, 83) // #11 - Spike Facing Left Bottom Right Chunk41end sub424344// ========================45// Editor Subs46// ========================4748sub RSDKDraw49DrawSprite(0)50end sub515253sub RSDKLoad54LoadSpriteSheet("Global/Display.gif")55SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon5657SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")58end sub596061