Path: blob/master/Sonic 2/Scripts/MPZ/Guage.txt
1480 views
// ----------------------------------1// RSDK Project: Sonic 22// Script Description: Guage Object3// Script Author: Christian Whitehead/Simon Thomley4// Unpacked by Rubberduckycooly's script unpacker5// ----------------------------------67// Note - May Guage be a typo?8// Normally the word Gauge is used...9// But then again, this game's half Australian as well1011// ========================12// Function Declarations13// ========================1415reserve function Guage_DebugDraw16reserve function Guage_DebugSpawn171819// ========================20// Function Declarations21// ========================2223private function Guage_DebugDraw24DrawSprite(0)25end function262728private function Guage_DebugSpawn29CreateTempObject(TypeName[Guage], 0, object.xpos, object.ypos)30end function313233// ========================34// Events35// ========================3637event ObjectDraw38// Just a simple decoration object - no further code needed39DrawSprite(0)40end event414243event ObjectStartup44LoadSpriteSheet("MPZ/Objects.gif")4546// Guage frame47SpriteFrame(-8, -8, 16, 16, 330, 157)4849// Add the Guage to the debug mode item list50SetTableValue(TypeName[Guage], DebugMode_ObjCount, DebugMode_TypesTable)51SetTableValue(Guage_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)52SetTableValue(Guage_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)53DebugMode_ObjCount++54end event555657// ========================58// Editor Events59// ========================6061event RSDKDraw62DrawSprite(0)63end event646566event RSDKLoad67LoadSpriteSheet("MPZ/Objects.gif")68SpriteFrame(-8, -8, 16, 16, 330, 157)6970SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")71end event727374