Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R4/BurstSplash.txt
1319 views
1
//----------------Sonic CD Burst Splash 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
#alias Object.Value1 : Object.XVelocity
8
#alias Object.Value2 : Object.YVelocity
9
10
11
sub ObjectMain
12
Object.XPos += Object.XVelocity
13
Object.YPos += Object.YVelocity
14
Object.YVelocity += 0x1000
15
16
if Object.OutOfBounds == true
17
Object.Type = TypeName[Blank Object]
18
end if
19
20
Object.Timer++
21
if Object.Timer == 60
22
Object.Type = TypeName[Blank Object]
23
end if
24
end sub
25
26
27
sub ObjectDraw
28
DrawSpriteFX(0, FX_FLIP, Object.XPos, Object.YPos)
29
Object.Direction++
30
Object.Direction &= 3
31
end sub
32
33
34
sub ObjectStartup
35
LoadSpriteSheet("R4/Objects3.gif")
36
37
SpriteFrame(-16, -16, 32, 32, 1, 117) // #0 - Burst Splash
38
end sub
39
40
41
// ========================
42
// Editor Subs
43
// ========================
44
45
sub RSDKDraw
46
DrawSprite(0)
47
end sub
48
49
50
sub RSDKLoad
51
LoadSpriteSheet("R4/Objects3.gif")
52
53
SpriteFrame(-16, -16, 32, 32, 1, 117) // #0 - Burst Splash
54
55
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
56
end sub
57
58