Path: blob/main/Scripts/R7/Debris.txt
1319 views
//-------------------Sonic CD Debris Script-------------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value1 : Object.XVelocity6#alias Object.Value2 : Object.YVelocity789sub ObjectMain10// Update movement11Object.XPos += Object.XVelocity12Object.YPos += Object.YVelocity1314// Gravity15Object.YVelocity += 0x20001617if Object.OutOfBounds == true18// Unload when no longer needed19Object.Type = TypeName[Blank Object]20end if2122end sub232425sub ObjectDraw26DrawSpriteFX(Object.PropertyValue, FX_FLIP, Object.XPos, Object.YPos)27end sub282930sub ObjectStartup31LoadSpriteSheet("R7/Objects3.gif")3233// Debris Frames3435// Average looking Debris36SpriteFrame(-4, -4, 8, 8, 162, 124)37SpriteFrame(-4, -4, 8, 8, 171, 124)38SpriteFrame(-4, -4, 8, 8, 180, 124)39SpriteFrame(-4, -4, 8, 8, 189, 124)4041// Metal Sonic-shaped Debris42SpriteFrame(-4, -4, 8, 8, 109, 124)43SpriteFrame(-4, -4, 8, 8, 118, 124)44SpriteFrame(-4, -4, 8, 8, 127, 124)45SpriteFrame(-4, -4, 8, 8, 136, 124)46SpriteFrame(-8, -8, 16, 16, 145, 124)4748end sub495051// ========================52// Editor Subs53// ========================5455sub RSDKDraw56DrawSprite(0)57end sub585960sub RSDKLoad61LoadSpriteSheet("R7/Objects3.gif")62SpriteFrame(-4, -4, 8, 8, 162, 124)6364// Although used by the object, it shouldn't be set from the editor, let alone placed in the scene at all65SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")66end sub676869