Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 1/Scripts/GHZ/BossLights.txt
1480 views
1
// ----------------------------------
2
// RSDK Project: Sonic 1
3
// Script Description: Boss Lights Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// ========================
9
// Aliases
10
// ========================
11
12
private alias object.value0 : object.timer
13
14
15
// ========================
16
// Events
17
// ========================
18
19
event ObjectDraw
20
temp0 = object.timer
21
temp0 >>= 3
22
23
object.timer++
24
object.timer &= 15
25
26
DrawSprite(temp0)
27
end event
28
29
30
event ObjectStartup
31
LoadSpriteSheet("Global/Eggman.gif")
32
33
// Light frames
34
SpriteFrame(-8, -5, 16, 13, 196, 24)
35
SpriteFrame(-8, -5, 16, 13, 196, 38)
36
end event
37
38
39
// ========================
40
// Editor Events
41
// ========================
42
43
event RSDKDraw
44
DrawSprite(0)
45
end event
46
47
48
event RSDKLoad
49
LoadSpriteSheet("Global/Eggman.gif")
50
SpriteFrame(-8, -5, 16, 13, 196, 24)
51
52
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
53
end event
54
55