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/MPZ/PlatConveyor.txt
1482 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: Plat Conveyor Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// ========================
9
// Function Declarations
10
// ========================
11
12
reserve function PlatConveyor_DebugDraw
13
reserve function PlatConveyor_DebugSpawn
14
15
private function PlatConveyor_DebugDraw
16
DrawSprite(0)
17
end function
18
19
20
private function PlatConveyor_DebugSpawn
21
CreateTempObject(TypeName[Plat Conveyor], 0, object.xpos, object.ypos)
22
end function
23
24
25
// ========================
26
// Events
27
// ========================
28
29
event ObjectDraw
30
DrawSprite(object.propertyValue)
31
end event
32
33
34
event ObjectStartup
35
LoadSpriteSheet("MPZ/Objects.gif")
36
SpriteFrame(-2, -8, 4, 16, 173, 53)
37
SpriteFrame(-2, -8, 4, 16, 178, 53)
38
39
SetTableValue(TypeName[Plat Conveyor], DebugMode_ObjCount, DebugMode_TypesTable)
40
SetTableValue(PlatConveyor_DebugDraw, DebugMode_ObjCount, DebugMode_DrawTable)
41
SetTableValue(PlatConveyor_DebugSpawn, DebugMode_ObjCount, DebugMode_SpawnTable)
42
DebugMode_ObjCount++
43
end event
44
45
46
// ========================
47
// Editor Events
48
// ========================
49
50
event RSDKDraw
51
DrawSprite(object.propertyValue)
52
end event
53
54
55
event RSDKLoad
56
LoadSpriteSheet("MPZ/Objects.gif")
57
SpriteFrame(-2, -8, 4, 16, 173, 53)
58
SpriteFrame(-2, -8, 4, 16, 178, 53)
59
60
SetVariableAlias(ALIAS_VAR_PROPVAL, "frameID")
61
end event
62
63