Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R3/GateLight.txt
1319 views
1
//----------------Sonic CD Gate Light Script------------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
6
sub ObjectDraw
7
DrawSprite(Object.PropertyValue)
8
end sub
9
10
11
sub ObjectStartup
12
LoadSpriteSheet("R3/Objects2.gif")
13
// in the spritesheet is using the present palette, but they are only used in the futures
14
SpriteFrame(-8, -8, 16, 16, 147, 84) // #0 - Green Gate Light
15
SpriteFrame(-8, -8, 16, 16, 164, 84) // #1 - Yellow Gate Light
16
end sub
17
18
19
// ========================
20
// Editor Subs
21
// ========================
22
23
sub RSDKDraw
24
DrawSprite(0)
25
end sub
26
27
28
sub RSDKLoad
29
LoadSpriteSheet("Global/Display.gif")
30
SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon
31
32
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
33
end sub
34
35