Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/Global/Explosion.txt
1319 views
1
//----------------Sonic CD Explosion Script-------------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
// Aliases
6
#alias Object.Value0 : Object.Timer
7
8
#alias 0 : PLAYER_SONIC_A
9
#alias 1 : PLAYER_TAILS_A
10
11
12
sub ObjectDraw
13
DrawSprite(Object.Frame)
14
Object.Timer++
15
if Object.Timer > 3
16
Object.Timer = 0
17
Object.Frame++
18
if Object.Frame > 4
19
Object.Type = TypeName[Blank Object]
20
Object.Frame = 0
21
end if
22
end if
23
end sub
24
25
26
sub ObjectStartup
27
if Stage.PlayerListPos == PLAYER_SONIC_A
28
LoadSpriteSheet("Global/Items2.gif")
29
end if
30
if Stage.PlayerListPos == PLAYER_TAILS_A
31
LoadSpriteSheet("Global/Items2_t.gif")
32
end if
33
#platform: Use_Origins
34
if Stage.PlayerListPos == PLAYER_KNUCKLES
35
LoadSpriteSheet("Global/Items2_k.gif")
36
end if
37
if Stage.PlayerListPos == PLAYER_AMY
38
LoadSpriteSheet("Global/Items2_a.gif")
39
end if
40
#endplatform
41
42
SpriteFrame(-16, -8, 32, 16, 1, 1) // #0 - Explosion Frame 0
43
SpriteFrame(-16, -16, 32, 32, 1, 84) // #1 - Explosion Frame 1
44
SpriteFrame(-16, -16, 32, 32, 1, 117) // #2 - Explosion Frame 2
45
SpriteFrame(-24, -24, 48, 48, 34, 1) // #3 - Explosion Frame 3
46
SpriteFrame(-24, -24, 48, 48, 34, 50) // #4 - Explosion Frame 4
47
end sub
48
49
50
// ========================
51
// Editor Subs
52
// ========================
53
54
sub RSDKDraw
55
DrawSprite(0)
56
end sub
57
58
59
sub RSDKLoad
60
LoadSpriteSheet("Global/Items2.gif")
61
SpriteFrame(-24, -24, 48, 48, 34, 1) // #0 - Explosion Frame 3
62
63
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
64
end sub
65
66