Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R8/BossSpark.txt
1319 views
1
//----------------Sonic CD Boss Spark Script------------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
// Aliases
6
#alias Object.Value2 : Object.YVelocity
7
8
9
sub ObjectMain
10
Object.YVelocity += 0x1000
11
Object.YPos += Object.YVelocity
12
13
if Object.Alpha > 0
14
Object.Alpha -= 8
15
else
16
Object.Type = TypeName[Blank Object]
17
end if
18
end sub
19
20
21
sub ObjectDraw
22
TempValue0 = Object.AnimationTimer
23
TempValue0 >>= 2
24
DrawSpriteFX(TempValue0, FX_INK, Object.XPos, Object.YPos)
25
26
Object.AnimationTimer++
27
Object.AnimationTimer &= 7
28
end sub
29
30
31
sub ObjectStartup
32
LoadSpriteSheet("R8/Objects3.gif")
33
34
SpriteFrame(-8, -4, 16, 8, 238, 67) // #0 - Boss Spark
35
SpriteFrame(-8, -4, 16, 8, 238, 76) // #1 - Boss Spark flipped
36
end sub
37
38
39
// ========================
40
// Editor Subs
41
// ========================
42
43
sub RSDKDraw
44
DrawSprite(0)
45
end sub
46
47
48
sub RSDKLoad
49
LoadSpriteSheet("R8/Objects3.gif")
50
51
SpriteFrame(-8, -4, 16, 8, 238, 67) // #0 - Boss Spark
52
53
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
54
end sub
55
56