Path: blob/master/Sonic 1/Scripts/SYZ/RLight.txt
1480 views
// ----------------------------------1// RSDK Project: Sonic 12// Script Description: Rotating Light Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// ========================8// Function Declarations9// ========================1011reserve function RotatingLight_DebugDraw12reserve function RotatingLight_DebugSpawn131415private function RotatingLight_DebugDraw16DrawSprite(SYZSetup_RLightFrame)17end function181920private function RotatingLight_DebugSpawn21CreateTempObject(TypeName[Rotating Light], 0, object.xpos, object.ypos)22end function232425// ========================26// Events27// ========================2829event ObjectDraw30DrawSprite(SYZSetup_RLightFrame)31end event323334event ObjectStartup35LoadSpriteSheet("SYZ/Objects.gif")36SpriteFrame(-16, -8, 32, 16, 143, 152)37SpriteFrame(-16, -8, 32, 16, 143, 169)38SpriteFrame(-16, -8, 32, 16, 143, 186)39SpriteFrame(-16, -8, 32, 16, 143, 203)40SpriteFrame(-16, -8, 32, 16, 143, 220)41SpriteFrame(-16, -8, 32, 16, 143, 237)4243SetTableValue(TypeName[Rotating Light], DebugMode_ObjCount, DebugMode_TypesTable)44SetTableValue(RotatingLight_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)45SetTableValue(RotatingLight_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)46DebugMode_ObjCount++47end event484950// ========================51// Editor Events52// ========================5354event RSDKDraw55DrawSprite(0)56end event575859event RSDKLoad60LoadSpriteSheet("SYZ/Objects.gif")61SpriteFrame(-16, -8, 32, 16, 143, 152)6263SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")64end event656667