Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/Mission/SonicSpeedUp.txt
1319 views
1
//---------------Sonic CD Sonic Speed Up Script---------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
//-----------Used in Missions "M086 - Gotta Go Fast"----------//
5
//------------and "M110 - Extreme! Gotta Go Fast"-------------//
6
7
sub ObjectStartup
8
9
// Set Sonic double his normal speed, matching speed values of Speed Shoes
10
11
// Base Acceleration of 0.09375 pixels per frame
12
Player.Acceleration = 0x1800
13
14
// Aerial Acceleration of 0.1875 pixels per frame
15
Player.AirAcceleration = 0x3000
16
17
// Maximum Speed of 12 pixels per frame
18
Player.TopSpeed = 0xC0000
19
20
end sub
21
22
23
// ========================
24
// Editor Subs
25
// ========================
26
27
sub RSDKDraw
28
DrawSprite(0)
29
end sub
30
31
32
sub RSDKLoad
33
LoadSpriteSheet("Global/Items.gif")
34
SpriteFrame(-8, -8, 16, 16, 26, 106)
35
36
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
37
end sub
38
39
40
41