| !Start file for Oddball

Run OddBall:Code.NoError Run OddBallPatch:Code.Patch2
Run OddBall:Code.NoError RMEnsure GameModes 0.00 Run System:Modules.GameModes
Run OddBall:Code.NoError RMEnsure GameModes 0.00 Run OddBall:Modules.GameModes
Run Oddball:Code.NoError RMEnsure IRQUtils 0.00 Run Oddball:Modules.IRQUtils
Run OddBall:Code.Title
SetMacro OddBall$LevelPath <OddBall$Path>
Set OddBall$Maze 1
Set Oddball$No 1
SetMacro OddBall$SavePath <OddBall$Path>Saved.<OddBall$No>.
Set OddBall$DemoPath <OddBall$Path>Demo.
Set OddBall$FilePath <Oddball$DemoPath>
If OddBallSound=0 Then Audio Off
If OddBallSound=1 Then Audio On
RMLoad OddBall:Modules.Blitz
RMLoad OddBall:Modules.Stasis
StasisLink 1 1
StasisLink 2 2
StasisLink 3 3
StasisLink 4 4
StasisLink 5 5
StasisLink 6 6
StasisLink 7 7
StasisLink 8 8
RMLoad OddBall:Modules.StasisMod
If OddBallMusic=1 Then PlayMod 0 OddBall:Sounds.Music
RMLoad OddBall:Modules.Amnesia
RMLoad OddBall:Modules.FastSpr

Set OddBall$Key1 <Key$1>
Set OddBall$Key2 <Key$2>
Set OddBall$Key3 <Key$3>
Set OddBall$Key4 <Key$4>
Set OddBall$Key5 <Key$5>
Set OddBall$Key6 <Key$6>
Set OddBall$Key7 <Key$7>
Set OddBall$Key8 <Key$8>
Set OddBall$Key9 <Key$9>
Set OddBall$Key10 <Key$10>
Set OddBall$Key11 <Key$11>
Set OddBall$Key12 <Key$12>

Run OddBall:Code.NoError Run OddBall:Keys

StasisLoad 2 OddBall:Sounds.Blam
StasisLoad 3 OddBall:Sounds.Bonus
StasisLoad 4 OddBall:Sounds.Bounce
StasisLoad 5 OddBall:Sounds.Clink
StasisLoad 6 OddBall:Sounds.Crack
StasisLoad 7 OddBall:Sounds.Explo
StasisLoad 8 OddBall:Sounds.FallOff
StasisLoad 9 OddBall:Sounds.Goodies
StasisLoad 10 OddBall:Sounds.HollowPlop
StasisLoad 11 OddBall:Sounds.Magnet
StasisLoad 12 OddBall:Sounds.Throb

WimpSlot -min 576k -max 640k
Set OddBall$Code <OddBall$Path>Code.LoadCode
Run OddBall:Code.NoError Run OddBallPatch:Code.Patch3
Run <OddBall$Code>
