Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/R1/BoundsTriggerV.txt
1319 views
1
//------------Sonic CD Bounds Trigger V Script-------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
//-------Aliases-------//
6
7
sub ObjectPlayerInteraction
8
PlayerObjectCollision(C_TOUCH, -16, -16, 16, 16)
9
if CheckResult == 1
10
switch Object.PropertyValue
11
case 0
12
Stage.NewYBoundary2 = 0x500
13
Stage.NewXBoundary1 = 0x820
14
break
15
end switch
16
end if
17
end sub
18
19
20
sub ObjectStartup
21
// This object doesn't have anything here.
22
end sub
23
24
25
sub ObjectDraw
26
if Stage.DebugMode == 1
27
TempValue0 = Object.iXPos
28
TempValue0 -= 16
29
TempValue0 -= Screen.XOffset
30
TempValue1 = Object.iYPos
31
TempValue1 -= 16
32
TempValue1 -= Screen.YOffset
33
DrawRect(TempValue0, TempValue1, 32, 32, 0, 96, 48, 255)
34
end if
35
end sub
36
37
sub RSDKDraw
38
DrawSprite(0)
39
end sub
40
41
sub RSDKLoad
42
LoadSpriteSheet("Global/Display.gif")
43
SpriteFrame(-16, -16, 32, 32, 1, 143)
44
end sub
45
46