Path: blob/main/Scripts/R5/SBullet.txt
1319 views
//---------------Sonic CD Sasuri Bullet Script----------------//1//--------Scripted by Christian Whitehead 'The Taxman'--------//2//-------Unpacked By Rubberduckycooly's Script Unpacker-------//34// Aliases5#alias Object.Value1 : Object.XVelocity678sub ObjectMain910Object.XPos += Object.XVelocity1112if Object.OutOfBounds == true13// If Out Of Bounds, then Unload14Object.Type = TypeName[Blank Object]15else16// Another condition for Unloading - be far enough from the screen on the Y Axis too17TempValue0 = Screen.YOffset18TempValue0 -= 819TempValue0 <<= 162021if Object.YPos < TempValue022Object.Type = TypeName[Blank Object]23end if24end if2526end sub272829sub ObjectPlayerInteraction3031PlayerObjectCollision(C_TOUCH, -6, -6, 6, 6)32if CheckResult == true33CallFunction(Player_Hit)34end if3536end sub373839sub ObjectDraw4041TempValue0 = Object.Frame42TempValue0 >>= 143DrawSprite(TempValue0)4445Object.Frame++46Object.Frame &= 34748end sub495051sub ObjectStartup52LoadSpriteSheet("R5/Objects.gif")5354// Bullet Frames55SpriteFrame(-8, -8, 16, 16, 67, 27)56SpriteFrame(-8, -8, 16, 16, 133, 127)5758end sub596061// ========================62// Editor Subs63// ========================6465sub RSDKDraw66DrawSprite(0)67end sub686970sub RSDKLoad71LoadSpriteSheet("R5/Objects.gif")72SpriteFrame(-8, -8, 16, 16, 67, 27)7374SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")75end sub767778