Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 2/Scripts/Title/ShootingStar.txt
1480 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: Shooting Star Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// ========================
9
// Aliases
10
// ========================
11
12
private alias object.value0 : object.delay
13
14
15
// ========================
16
// Events
17
// ========================
18
19
event ObjectUpdate
20
if object.delay > 0
21
object.delay--
22
else
23
object.xpos -= 0x20000
24
object.ypos += 0x10000
25
if object.ypos > 0x1000000
26
object.type = TypeName[Blank Object]
27
end if
28
29
object.frame = object.animationTimer
30
object.frame >>= 2
31
object.animationTimer++
32
object.animationTimer &= 7
33
end if
34
end event
35
36
37
event ObjectDraw
38
DrawSprite(object.frame)
39
end event
40
41
42
event ObjectStartup
43
LoadSpriteSheet("Title/Title.gif")
44
SpriteFrame(-4, -4, 7, 7, 417, 59)
45
SpriteFrame(-3, -3, 5, 5, 465, 61)
46
end event
47
48
49
// ========================
50
// Editor Events
51
// ========================
52
53
event RSDKDraw
54
DrawSprite(0)
55
end event
56
57
58
event RSDKLoad
59
LoadSpriteSheet("Title/Title.gif")
60
SpriteFrame(-4, -4, 7, 7, 417, 59)
61
62
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
63
end event
64
65