Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R7/BoosterCart.txt
1319 views
1
//--------------Sonic CD BoosterCartridge Script--------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
// Aliases
6
#alias Object.Value1 : Object.XVelocity
7
#alias Object.Value2 : Object.YVelocity
8
9
10
sub ObjectMain
11
12
// Update movement
13
Object.XPos += Object.XVelocity
14
Object.YPos += Object.YVelocity
15
16
// Gravity of 0.25 pixels per frame
17
Object.YVelocity += 0x4000
18
19
if Object.OutOfBounds == true
20
// Unload when no longer needed
21
Object.Type = TypeName[Blank Object]
22
end if
23
24
end sub
25
26
27
sub ObjectDraw
28
DrawSpriteFX(Object.Frame, FX_FLIP, Object.XPos, Object.YPos)
29
end sub
30
31
32
sub ObjectStartup
33
LoadSpriteSheet("R7/Objects.gif")
34
35
// Booster Cart Frame
36
SpriteFrame(-8, -4, 16, 8, 90, 43)
37
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("R7/Objects.gif")
52
SpriteFrame(-8, -4, 16, 8, 90, 43)
53
54
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
55
end sub
56
57