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/WFZ/TornadoExplosion.txt
1483 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: T Explosion 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.timer
13
14
15
// ========================
16
// Tables
17
// ========================
18
19
private table TExplosion_explosionDurations
20
4, 8, 8, 8, 8
21
end table
22
23
24
// ========================
25
// Events
26
// ========================
27
28
event ObjectUpdate
29
object.xpos -= 0x10000
30
object.ypos -= 0x10000
31
32
object.timer++
33
GetTableValue(temp0, object.frame, TExplosion_explosionDurations)
34
35
if object.timer > temp0
36
object.timer = 0
37
object.frame++
38
if object.frame > 4
39
object.type = TypeName[Blank Object]
40
object.frame = 0
41
end if
42
end if
43
end event
44
45
46
event ObjectDraw
47
DrawSprite(object.frame)
48
end event
49
50
51
event ObjectStartup
52
LoadSpriteSheet("Global/Items2.gif")
53
SpriteFrame(-8, -8, 16, 16, 230, 18)
54
SpriteFrame(-16, -16, 32, 32, 1, 1)
55
SpriteFrame(-16, -16, 32, 32, 1, 34)
56
SpriteFrame(-16, -16, 32, 32, 1, 67)
57
SpriteFrame(-16, -16, 32, 32, 1, 100)
58
end event
59
60
61
// ========================
62
// Editor Events
63
// ========================
64
65
event RSDKDraw
66
DrawSprite(0)
67
end event
68
69
70
event RSDKLoad
71
LoadSpriteSheet("Global/Items2.gif")
72
SpriteFrame(-8, -8, 16, 16, 230, 18)
73
74
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
75
end event
76
77