Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R6/SteamCloud.txt
1319 views
1
//----------------Sonic CD Steam Cloud 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
13
Object.XPos += Object.XVelocity
14
Object.YPos += Object.YVelocity
15
16
Object.Timer++
17
if Object.Timer == 30
18
Object.Type = TypeName[Blank Object]
19
end if
20
21
Object.Frame = Object.Timer
22
Object.Frame /= 10
23
24
end sub
25
26
27
sub ObjectDraw
28
DrawSprite(Object.Frame)
29
end sub
30
31
32
sub ObjectStartup
33
LoadSpriteSheet("R6/Objects2.gif")
34
35
SpriteFrame(-12, -12, 24, 24, 228, 26) // #0 - Steam Cloud frame 0
36
SpriteFrame(-16, -16, 32, 32, 165, 133) // #1 - Steam Cloud frame 1
37
SpriteFrame(-16, -12, 32, 24, 165, 166) // #2 - Steam Cloud frame 2
38
39
end sub
40
41
42
// ========================
43
// Editor Subs
44
// ========================
45
46
sub RSDKDraw
47
DrawSprite(0)
48
end sub
49
50
51
sub RSDKLoad
52
LoadSpriteSheet("R6/Objects2.gif")
53
54
SpriteFrame(-12, -12, 24, 24, 228, 26) // #0 - Steam Cloud frame 0
55
56
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
57
end sub
58
59