If Col(8) Then Amal 8,M8$ : Amal On(8) : Sam Play 8,1,7500
'
NPIG9: Rem Pig 8 already bashed...
If Col(9) Then PIG9 : Rem Is Superpig hit ?
Pop Proc
Rem ****************************************************
PIGPUMP: Rem SKIP CLOUT ON HEAD AND START PUMPING ! ! !
Rem ****************************************************
If Col(5) Then PIG5
If Col(6) Then PIG6
If Col(7) Then PIG7
If Col(8) Then PIG8
End Proc
Procedure PIG5
If Amreg(5,9)=1 Then Pop Proc
If Amreg(5,9)=0 Then Pop Proc
If Amreg(5,9)=3 Then Pop Proc
If Spritebob Col(2,5 To 5) Then Amal 1,"M 0,0,0;L RB=RB+1" : Amal On(1)
If Amreg(1)>3 Then Bob 5,,,59
If Amreg(1)>7 Then Bob 5,,,60
If Amreg(1)>11 Then Bob 5,,,61
If Amreg(1)>15 Then Bob 5,,,62
If Amreg(1)>19 Then Amal Off(5) : Amal 5,"L RN=RN+1;A 1,(63,28)(64,7)(65,7)(9,1)" : Amal On(5) : Sam Play 4,2,6000
End Proc
Procedure PIG6
If Amreg(6,9)=1 Then Pop Proc
If Amreg(6,9)=0 Then Pop Proc
If Amreg(6,9)=3 Then Pop Proc
If Spritebob Col(2,6 To 6) Then Amal 1,"M 0,0,0;L RC=RC+1" : Amal On(1)
If Amreg(2)>3 Then Bob 6,,,59
If Amreg(2)>7 Then Bob 6,,,60
If Amreg(2)>11 Then Bob 6,,,61
If Amreg(2)>15 Then Bob 6,,,62
If Amreg(2)>19 Then Amal Off(6) : Amal 6,"L RN=RN+1;A 1,(63,28)(64,7)(65,7)(9,1)" : Amal On(6) : Sam Play 4,2,5000
End Proc
Procedure PIG7
If Amreg(5)=1 Then Pop Proc
If Amreg(5)=0 Then Pop Proc
If Amreg(5)=3 Then Pop Proc
If Spritebob Col(2,7 To 7) Then Amal 1,"M 0,0,0;L RG=RG+1" : Amal On(1)
If Amreg(6)>3 Then Bob 7,,,59
If Amreg(6)>7 Then Bob 7,,,60
If Amreg(6)>11 Then Bob 7,,,61
If Amreg(6)>15 Then Bob 7,,,62
If Amreg(6)>19 Then Amal Off(7) : Amal 7,"L RN=RN+1;A 1,(63,28)(64,7)(65,7)(9,1)" : Amal On(7) : Sam Play 4,2,5000
End Proc
Procedure PIG8
If Amreg(7)=1 Then Pop Proc
If Amreg(7)=0 Then Pop Proc
If Amreg(7)=3 Then Pop Proc
If Spritebob Col(2,8 To 8) Then Amal 1,"M 0,0,0;L RI=RI+1" : Amal On(1)
If Amreg(8)>3 Then Bob 8,,,59
If Amreg(8)>7 Then Bob 8,,,60
If Amreg(8)>11 Then Bob 8,,,61
If Amreg(8)>15 Then Bob 8,,,62
If Amreg(8)>19 Then Amal Off(8) : Amal 8,"L RN=RN+1;A 1,(63,28)(64,7)(65,7)(9,1)" : Amal On(8) : Sam Play 4,2,5000
End Proc
Procedure PIG9
' Stun Superpig if hit....
If Amreg(9,2)=1 Then Pop Proc
Amal 9,"L R2=1;M 0,-30,50;M 0,0,140;M 0,185,140;L R2=0" : Amal On(9)
Sam Play 4,2,4000
End Proc
Procedure MPIG7
' *INFO: JetPig that FOLLOWS player *
If Amreg(5)>0 Then Pop Proc : Rem Pop If PIG7 BASHED
P7=Zone(X Bob(7),Y Bob(7))
PL=Hzone(X Sprite(0),Y Sprite(0))
If Amreg(25)>0 Then Goto SKIP71
If P7>0 Then Amal 7,"L RZ=1;M 0,-20,10;M 0,-5,40;L RZ=2" : Amal On(7)
SKIP71: Rem skip platform detect & cont search
If P7=0 Then Goto SKIP72
If P7=PL Then MP7
SKIP72: Rem skip if bob7 zone =0
If Amreg(7,9)=2 Then MVPIG7
If Amreg(25)=2 Then MVPIG7
End Proc
Procedure MVPIG7
PY7=Y Hard(0,Y Bob(7))
If PY7>Y Sprite(0) Then Amal 7,"L RZ=0;L R9=0;A 3,(7,3)(8,3);M 0,-50,35;L R9=2" : Amal On(7)
If PY7<Y Sprite(0) Then Amal 7,"L RZ=1;L R9=0;M 0,50,40;L R9=2" : Amal On(7)
End Proc
Procedure MP7
If Amreg(7,1)=1 Then Pop Proc
PX=X Hard(0,X Bob(7))
If PX>X Sprite(0) Then Amal 7,"L R1=1;M 0,-10,18;A 10,(19,3)(20,3);M -30,0,37;L R1=0;L R9=2" : Amal On(7)
If PX<X Sprite(0) Then Amal 7,"L R1=1;M 0,-10,18;A 10,(7,3)(8,3);M 30,0,37;L R1=0;L R9=2" : Amal On(7)
End Proc
Procedure MPIG8
If Amreg(7)>0 Then Pop Proc
' *INFO: JetPig with Flamethrower
' Work out which direction for flame...
If Amreg(4)=1 Then Bob 15,X Bob(8)+45,Y Bob(8)-10,72 : Amal 15,"L RE=0;A 1,(9,2)(72,95)(9,2);M -80,20,55;M -80,-20,55;M -80,20,55;M -80,-20,55" : Amal On(15)
If Amreg(4)=2 Then Bob 15,X Bob(8)+0,Y Bob(8)-10,78 : Amal 15,"L RE=0;A 1,(9,2)(76,95)(9,2);M 80,20,55;M 80,-20,55;M 80,20,55;M 80,-20,55" : Amal On(15)
'.......................................
P8=Zone(X Bob(8),Y Bob(8))
PL=Hzone(X Sprite(0),Y Sprite(0))
If Amreg(24)>0 Then Goto SKIP81
If P8>0 Then Amal 8,"L RY=1;M 0,-20,10;M 0,-5,40;L RY=2" : Amal On(8)
SKIP81: Rem skip platform detect & cont search
If P8=0 Then Goto SKIP82
If P8=PL Then MP8
SKIP82: Rem skip if bob8 zone =0
If Amreg(8,9)=2 Then MVPIG8
If Amreg(24)=2 Then MVPIG8
End Proc
Procedure MVPIG8
PY8=Y Hard(,Y Bob(8))
If PY8>Y Sprite(0) Then Amal 8,"L RY=0;L R9=0;A 3,(7,3)(8,3);M 0,-50,35;L R9=2" : Amal On(8)
If PY8<Y Sprite(0) Then Amal 8,"L RY=1;L R9=0;M 0,50,40;L R9=2" : Amal On(8)
End Proc
Procedure MP8
If Amreg(8,1)=1 Then Pop Proc
PX=X Hard(,X Bob(8))
If PX>X Sprite(0) Then Amal 8,"L R1=1;M 0,-15,10;A 1,(69,9)(70,9)(71,6);L RE=1;M 0,0,90;L R1=0;L R9=2" : Amal On(8)
If PX<X Sprite(0) Then Amal 8,"L R1=1;M 0,-15,10;A 1,(73,9)(74,9)(75,6);L RE=2;M 0,0,90;L R1=0;L R9=2" : Amal On(8)
End Proc
Procedure MPIG9
' *INFO: SuperPig(complete with cape !):Follows player & flies at him
P9=Zone(X Bob(9),Y Bob(9))
PL=Hzone(X Sprite(0),Y Sprite(0))
If Amreg(23)>0 Then Goto SKIP91
If P9>0 Then Amal 9,"L RX=1;M 0,-20,10;M 0,-5,40;L RX=2" : Amal On(9)
SKIP91: Rem skip platform detect & cont search
If P9=0 Then Goto SKIP92
If P9=PL Then MP9
SKIP92: Rem skip if bob9 zone =0
If Amreg(9,9)=2 Then MVPIG9
If Amreg(23)=2 Then MVPIG9
End Proc
Procedure MVPIG9
PY9=Y Hard(,Y Bob(9))
If PY9>Y Sprite(0) Then Amal 9,"L RX=0;L R9=0;L A=86;M 0,-50,35;L R9=2" : Amal On(9)
If PY9<Y Sprite(0) Then Amal 9,"L RX=1;L R9=0;L A=85;M 0,50,40;L R9=2" : Amal On(9)
End Proc
Procedure MP9
If Amreg(9,1)=1 Then Pop Proc
PX=X Hard(,X Bob(9))
If PX>X Sprite(0) Then Amal 9,"L R1=1;M 0,-20,18;A 10,(83,5)(84,5);M -250,0,97;A 11,(87,3)(88,3);M 230,0,87;L A=81;M 0,0,50;L R1=0;L R9=2" : Amal On(9)
If PX<X Sprite(0) Then Amal 9,"L R1=1;M 0,-20,18;A 10,(87,5)(88,5);M 250,0,97;A 11,(83,3)(84,3);M -230,0,87;L A=85;M 0,0,50;L R1=0;L R9=2" : Amal On(9)
End Proc
Procedure PLAT
H=Hzone(X Sprite(0),Y Sprite(0))
If P=99 Then Goto MISSPLAT
If H=1 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(16))+14,
If H=2 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(17))+14,
If H=3 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(18))+14,
If H=4 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(19))+14,
If H=5 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(20))+14,
If H=6 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),Y Hard(0,Y Bob(21))+14,
If H=7 Then P=99 : Amal Off(1) : Sprite 0,X Sprite(0),277, : Rem Zone 7 is Floor
MISSPLAT: Rem miss the plats
If H=0 Then P=0 : DROP
End Proc
Procedure SETUP
Rem Setup Bike stealer,Crate etc
Box 190,0 To 290,16
Bob 22,300,250,96
Bob 3,-10,240,90 : Rem Position Bike stealer
Bob 49,200,5,27 : Rem energy gone marker
Amal 3,"L RB=0;L RC=0;L RG=0;L RI=0;L RH=0;L RO=0;L RN=0;Loop: M 0,0,100;A 10,(90,9)(91,9)(92,9)(91,9);M 300,0,220;M 0,0,4;A 10,(93,9)(94,9)(95,9)(94,9);M -300,0,180;J Loop" : Amal On(3)
End Proc
Procedure LEV40SETUP
Amal Off
Screen Open 0,320,250,32,Lowres
Load Iff "iff/shop1",1
Fade 1
Load Iff "iff/shop1",0
Screen Display 1,150,-250,,
Screen Display 0,150,-250,,
Auto View On
Get Sprite Palette : Flash Off
Make Mask
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
For N=0 To 140 : Next
Next DIS
Set Pattern(16)
Set Paint(1)
Rem ................................Set up platforms..............
Autoback 2
Wait 40
Ink 11
Reserve Zone 7
Set Zone 1,60,200 To 318,208 : Bar 60,200 To 315,204 : Rem BOB 16
Set Zone 2,250,160 To 300,168 : Bar 250,160 To 300,164
Set Zone 3,0,120 To 315,128 : Bar 0,120 To 315,124
Set Zone 4,30,80 To 70,88 : Bar 30,80 To 70,84
Set Zone 5,35,40 To 290,48 : Bar 35,40 To 290,44
Set Zone 6,5,177 To 20,185 : Bar 5,177 To 20,181
Set Zone 7,0,227 To 320,245
Wait Vbl : Double Buffer
Rem Position Down-Lifts
Bob 16,-100,187,97
Bob 17,-302,147,97
Bob 18,-150,107,97
Bob 19,-30,67,97
Bob 20,-180,27,97
Bob 21,-19,163,97
'
'Screen Copy Logic,150,200,180,250 To Physic,150,200
Rem ------------------prepare enemies Level 40----------------------------------------------------------
Bob 5,65,40,41 : Rem PIG 1....(X) Pork Trooper 1
Bob 6,55,42,41 : Rem PIG 2 ...(Y) Pork Trooper 2
Bob 7,-20,240,7 : Rem PIG 3...(C) Jet pig 1 (chaser)
Bob 8,160,10,19 : Rem PIG 4... Jet Pig 2 (FlameThrower)
Bob 9,300,0,85 : Rem Pig 5......Superpig
Bob 50,240,-2,9
Wait 70 : Rem PAUSE While Screen MOVES IN DISPLAY
' Now Animate Enemies....
Amal 5,"Loop: A 40,(40,7)(41,7)(42,7) ; M 180,0,160;M 0,0,10;A 40,(43,7)(44,7)(45,7);M -180,0,160;M 0,0,15;P;J Loop" : Amal On(5)
Amal 6,"Loop: A 32,(40,7)(41,7)(42,7) ; M 240,0,185;M 0,80,95;A 35,(43,7)(44,7)(45,7);M -240,0,155;M 0,-40,45;M 0,0,15;M 0,-40,45;P;J Loop" : Amal On(6)
Amal 7,"L R9=0;L RF=0;M 0,0,100;A 40,(7,4)(8,4);M 0,0,120;M 0,0,30;L R9=0" : Amal On(7)
Amal 8,"L R9=0;M 0,0,100;A 40,(7,4)(8,4);M 0,130,120;L R9=2" : Amal On(8)
Amal 9,"L R9=0;M 0,0,200;M 0,80,100;L R9=2" : Amal On(9)
Rem --------------------------ENEMIES PREPARED-----------------------------------
Sprite 0,150,280,1
SETUP
Timer=0
End Proc
Procedure LEV41SETUP
Amal Off
Get Sprite Palette : Flash Off
Set Pattern(9)
Set Paint(4)
Rem ................................Set up platforms..............
Auto View Off
Screen Copy 1 To 0 : Screen Swap : Screen Copy 1 To 0
Screen 0
Wait 40
Ink 26,28,31
Reset Zone
Reserve Zone 7
Set Zone 1,110,160 To 150,168 : Bar 110,160 To 150,164 : Bob 16,-160,147,97
Set Zone 2,70,200 To 120,208 : Bar 70,200 To 120,204 : Bob 17,-73,187,97
Set Zone 3,60,125 To 90,132 : Bar 60,125 To 90,129 : Bob 18,-63,112,97
Set Zone 4,0,86 To 63,94 : Bar 0,86 To 60,90 : Bob 19,-10,73,97
Wait Vbl : Set Zone 5,220,50 To 240,58 : Bar 220,50 To 240,54 : Bob 20,-220,37,97
Set Zone 6,230,177 To 260,185 : Bar 230,177 To 260,181 : Bob 21,-233,164,97
Set Zone 7,0,227 To 320,245 : Rem FLOOR
'
Wait Vbl : Screen Copy Logic,150,200,180,250 To Physic,150,200
Rem ------------------prepare enemies Level 40----------------------------------------------------------
Bob 3,10,260,90 : Rem Position Bike stealer
Bob 5,38,85,40 : Rem PIG 1....(X) Pork Trooper 1
Bob 6,72,200,40 : Rem PIG 2 ...(Y) Pork Trooper 2
Bob 7,10,20,19 : Rem PIG 4... Jet Pig 2 (Follower)
Bob 8,-20,10,39 : Rem JET PIG WITH FLMTHROWR XXX
Bob 9,-20,10,85 : Rem Pig 5......Superpig XXX
Bob 50,291,130,9 : Rem MOVE- On ICON
Sprite 4,220,110,89 : Rem Moving platform
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
'Wait 1
For N=1 To 100 : Next
Next DIS
Wait 70 : Rem PAUSE While Screen MOVES IN DISPLAY
Amal 5,"Loop: A 30,(40,5)(41,5)(42,5) ; M 23,0,90;M 0,45,90;M 35,0,90;M 0,70,75;A 20,(43,5)(44,5)(45,5);P;M -30,0,60;M 0,40,70;M -80,0,55;A 10,(40,5)(41,5)(42,5);M 0,-155,10;M 52,0,80;P;J Loop " : Amal On(5)
Amal 6,"Loop: A 30,(40,7)(41,7)(42,7) ; M 45,0,85;M 0,0,25;M 0,-40,45;M 0,0,25;M 35,0,65;A 30,(43,5)(44,5)(45,5);P;M -35,0,65;M 0,40,45;M -45,0,85;P;J Loop" : Amal On(6)
Amal 7,"L R9=0;L RF=0;L RZ=0;M 0,0,100;A 40,(7,4)(8,4);M 0,90,120;M 0,0,30;L R9=2" : Amal On(7)
Amal 8,"M 0,0,200" : Amal On(8) : Rem DO NOTHING
Amal 9,"L R9=0;M 0,0,100;L R9=2" : Amal On(9) : Rem Do Nothing
Amal 4,"Loop: M 100,0,190;M -100,0,190;P;J Loop" : Amal On(4)
Rem --------------------------ENEMIES PREPARED-----------------------------------
SETUP
Sprite 0,150,280,1
Timer=0
End Proc
Procedure LEV42SETUP
Amal Off
Get Sprite Palette : Flash Off
Set Pattern(18)
Set Paint(5)
Rem ................................Set up platforms..............
Auto View Off
Screen Copy 1 To 0 : Screen Swap : Screen Copy 1 To 0
Screen 0
Ink 3,25,31
Reset Zone
Reserve Zone 7
Set Zone 1,235,70 To 320,78 : Bar 235,70 To 320,75 : Bob 16,-235,57,97
Set Zone 2,140,100 To 210,108 : Bar 140,100 To 210,105 : Bob 17,-140,87,97
Set Zone 3,60,180 To 90,188 : Bar 60,180 To 90,185 : Bob 18,-60,167,97
Set Zone 4,120,200 To 150,2008 : Bar 120,200 To 150,205 : Bob 19,-120,187,97
Wait Vbl : Set Zone 5,290,170 To 310,178 : Bar 290,170 To 310,185 : Bob 20,-290,157,97
Set Zone 6,70,60 To 90,68 : Bar 70,60 To 90,65 : Bob 21,-70,47,97
Set Zone 7,0,227 To 320,245
'
Wait Vbl : Screen Copy Logic,150,200,180,250 To Physic,150,200
Rem ------------------prepare enemies Level 42----------------------------------------------------------
Bob 5,238,70,40 : Rem PIG 1....(X) Pork Trooper 1
Bob 6,120,200,40 : Rem PIG 2 ...(Y) Pork Trooper 2
Bob 7,0,80,9 : Rem PIG 4... Jet Pig 2 (Follower)
Bob 8,-30,10,40 : Rem JET PIG WITH FLMTHROWR XXX
Bob 9,20,-10,85 : Rem Pig 5......Superpig XXX
Bob 50,55,4,9 : Rem MOVE- On ICON
Sprite 4,220,110,89 : Rem Moving platform
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
'Wait 1
For N=1 To 100 : Next
Next DIS
Wait 70 : Rem PAUSE While Screen MOVES IN DISPLAY
Amal 5,"Loop: A 20,(40,5)(41,5)(42,5) ; M 80,0,60;P;M 0,0,30;A 10,(43,4)(44,4)(45,4);M -80,0,60;M 0,0,30;P;J Loop" : Amal On(5)
Amal 6,"Loop: A 30,(40,7)(41,7)(42,7) ; M 30,0,85;M 0,25,50;P;M 50,0,85;M 0,0,25;A 30,(43,5)(44,5)(45,5);M -50,0,85;M 0,-25,50;M -30,0,85;P;J Loop" : Amal On(6)
Amal 7,"L R9=0;L RF=0;M 0,0,260;A 40,(7,4)(8,4);M 0,90,120;M 0,0,30;L R9=2" : Amal On(7)
Amal 8,"L R9=0;L RH=0;A 130,(19,4)(20,4);M 0,0,200;M 0,100,50;L R9=1" : Amal On(8)
Amal 9,"L R9=0;M 0,0,100;L R9=2" : Amal On(9) : Rem Do Nothing
Amal 4,"Loop: M 0,70,100;M 0,-70,100;M 0,0,30;P;J Loop" : Amal On(4)
Rem --------------------------ENEMIES PREPARED-----------------------------------
SETUP
Sprite 0,150,280,1
Timer=0
End Proc
Procedure LEV43SETUP
Amal Off
Get Sprite Palette : Flash Off
Set Pattern(18)
Set Paint(5)
Rem ................................Set up platforms..............
Auto View Off
Screen Copy 1 To 0 : Screen Swap : Screen Copy 1 To 0
Screen 0
Ink 3,25,31
Reset Zone
Reserve Zone 7
Set Zone 1,35,50 To 320,58 : Bar 35,50 To 320,55 : Bob 16,-35,37,97
Set Zone 2,50,80 To 70,88 : Bar 50,80 To 70,85 : Bob 17,-50,67,97
Set Zone 3,60,180 To 90,188 : Bar 60,180 To 90,185 : Bob 18,-60,167,97
Set Zone 4,120,180 To 150,188 : Bar 120,180 To 150,185 : Bob 19,-120,167,97
Set Zone 5,190,180 To 230,188 : Bar 190,180 To 230,185 : Bob 20,-190,167,97
Set Zone 6,260,200 To 280,208 : Bar 260,200 To 280,205 : Bob 21,-260,187,97
Set Zone 7,0,227 To 320,245
'
Wait Vbl : Screen Copy Logic,150,200,180,250 To Physic,150,200
Rem ------------------prepare enemies Level 42----------------------------------------------------------
Bob 5,238,50,40 : Rem PIG 1....(X) Pork Trooper 1
Bob 6,120,185,60 : Rem PIG 2 ...(Y) Pork Trooper 2
Bob 7,10,20,19 : Rem PIG 4... Jet Pig 2 (Follower)
Bob 8,310,10,39 : Rem JET PIG WITH FLMTHROWR
Bob 9,20,-10,85 : Rem Pig 5......Superpig XXX
Bob 50,2,164,9 : Rem MOVE- On ICON
Sprite 4,130,130,89 : Rem Moving platform
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
'Wait 1
For N=1 To 100 : Next
Next DIS
Wait 70 : Rem PAUSE While Screen MOVES IN DISPLAY
Amal 5,"Loop: A 20,(40,5)(41,5)(42,5) ; M 80,0,60;M 0,0,30;A 10,(43,4)(44,4)(45,4);M -80,0,60;M 0,0,30;P;J Loop" : Amal On(5)
Amal 6,"Loop: A 30,(40,7)(41,7)(42,7) ; M 30,0,85;M 0,25,50;M 50,0,85;M 0,0,25;A 30,(43,5)(44,5)(45,5);M -50,0,85;M 0,-25,50;M -30,0,85;P;J Loop" : Amal On(6)
Amal 7,"L R9=0;L RF=0;M 0,0,260;A 40,(7,4)(8,4);M 0,90,120;M 0,0,30;L R9=2" : Amal On(7)
Amal 8,"L R9=0;L RH=0;A 30,(19,4)(20,4);M 0,0,200;M 0,100,50;L R9=2" : Amal On(8)
Amal 9,"L R9=0;M 0,0,100;L R9=2" : Amal On(9) : Rem Do Nothing
Amal 4,"Loop: M 0,60,100;M 0,0,60;M 0,-60,100;P;J Loop" : Amal On(4)
Rem --------------------------ENEMIES PREPARED-----------------------------------
SETUP
Sprite 0,150,280,1
Timer=0
End Proc
Procedure LEV44SETUP
Amal Off
Sprite 4,100,100,
Get Sprite Palette : Flash Off
Set Pattern(16)
Set Paint(3)
Rem ................................Set up platforms..............
Auto View Off
Get Sprite Palette
Screen Copy 1 To 0 : Screen Swap : Screen Copy 1 To 0
Screen 0
Ink 7,24,31
Reset Zone
Reserve Zone 7
' Set Zone 1,35,70 To 320,80 : Bar 35,60 To 320,70
' Set Zone 2,50,100 To 70,110 : Bar 50,90 To 70,100
Set Zone 3,220,180 To 240,188 : Bar 220,180 To 240,185 : Bob 18,-220,167,97
Set Zone 4,160,190 To 175,198 : Bar 160,190 To 175,195 : Bob 19,-160,177,97
Set Zone 5,130,210 To 150,218 : Bar 130,210 To 150,215 : Bob 20,-130,197,97
Set Zone 6,180,210 To 200,215 : Bar 180,210 To 200,215 : Bob 21,-180,197,97
Set Zone 7,0,227 To 320,245
'
Rem ------------------prepare enemies Level 42----------------------------------------------------------
Bob 5,38,10,40 : Rem PIG 1....(X) Pork Trooper 1
Bob 6,-20,10,40 : Rem PIG 2 ...(Y) Pork Trooper 2
Bob 7,10,20,19 : Rem PIG 4... Jet Pig 2 (Follower)
Bob 8,10,10,39 : Rem JET PIG WITH FLMTHROWR XXX
Bob 9,20,10,85 : Rem Pig 5......Superpig XXX
Bob 50,285,140,25 : Rem rocket
Sprite 4,130,180,89 : Rem Moving platform
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
'Wait 1
For N=1 To 100 : Next
Next DIS
Wait 70 : Rem PAUSE While Screen MOVES IN DISPLAY
Amal 5,"M 0,0,200" : Amal On(5)
Amal 6,"M 0,0,85" : Amal On(6)
Amal 7,"L R9=0;L RF=0;M 0,0,1200;L R9=2" : Amal On(7)
Amal 8,"M 0,0,200" : Amal On(8) : Rem DO NOTHING
Amal 9,"L R9=0;M 0,0,1000;L R9=2" : Amal On(9) : Rem Do Nothing
Amal 4,"M 0,0,290" : Amal On(4)
Rem --------------------------ENEMIES PREPARED-----------------------------------
SETUP
Sprite 0,150,280,1
Timer=0
End Proc
Procedure LEV50SETUP
Amal Off
Sprite 0,100,100,
'Screen Close 0 : Screen Close 1
Screen Open 0,320,250,32,Lowres
Sprite 4,-100,100,
Cls 0
Load Iff "iff/strange",1
Fade 1
Load Iff "iff/strange",0
'Load "sprites/pigs.abk"
Screen Display 1,150,-250,,
Screen Display 0,150,-250,,
Auto View On
Get Sprite Palette : Flash Off
Make Mask
Auto View On
For DIS=-235 To 50
Screen Display 0,135,DIS,320,250
For N=0 To 140 : Next
'Wait 1
Next DIS
Set Pattern(2)
Set Paint(2)
Rem ................................Set up platforms..............
Autoback 2
Wait 40
Ink 25
Reserve Zone 7
Reset Zone
Sprite 0,-150,260,1
Set Zone 1,0,100 To 60,108 : Bar 0,100 To 60,105 : Rem BOB 16
Set Zone 2,90,180 To 110,188 : Bar 90,180 To 110,185
Set Zone 3,150,180 To 170,188 : Bar 150,180 To 170,185
Set Zone 4,210,180 To 240,188 : Bar 210,180 To 240,185
Set Zone 5,0,200 To 300,205 : Bar 0,200 To 300,205
Set Zone 6,280,180 To 320,185 : Bar 280,180 To 320,185
Set Zone 7,0,227 To 320,245
Wait Vbl : Double Buffer
Rem Position Down-Lifts
Bob 16,-20,87,97
Bob 17,-80,167,97
Bob 18,-140,167,97
Bob 19,-270,167,97
Bob 20,-20,187,97
Bob 21,-250,167,97
'
'Screen Copy Logic,150,200,180,250 To Physic,150,200
Rem ------------------prepare enemies Level 40----------------------------------------------------------
Bob 5,320,190,77 : Rem PIG 1....(X) Pork Trooper 1
' Bob 6,55,42,39 : Rem PIG 2 ...(Y) Pork Trooper 2
' Bob 7,2,240,7 : Rem PIG 3...(C) Jet pig 1 (chaser)
Bob 8,160,-10,19 : Rem PIG 4... Jet Pig 2 (FlameThrower)
Bob 9,300,-10,85 : Rem Pig 5......Superpig
Bob 50,-40,90,63
Bob 15,46,205,33 : Rem heart
'
Bob 7,0,-60,25 : Rem rocket routine
Bob 6,320,240,21
Bob 51,10,205,10 : Rem bike
Amal 7,"A 50,(25,4)(26,4);M 0,104,280" : Amal On(7)
Wait 410 : Rem PAUSE While Screen MOVES IN DISPLAY
Sam Play 1,2,2400
Sprite 0,155,140,2
Amal 0,"M 10,5,10;M 10,7,10;M 5,0,10" : Amal On(0)
Wait 50
' Now Animate Enemies....
Amal 5,"Loop: A 30,(77,5)(78,6); M -320,0,140;A 30,(79,7)(80,7);M 320,0,140;J Loop" : Amal On(5)
Amal 6,"M 0,0,100;Loop: M -390,0,170;M 0,0,60;L X=320;P;J Loop" : Amal On(6)
Rem --------------------------ENEMIES PREPARED-----------------------------------
SETUP
Timer=0
End Proc
Procedure LEV40
'MPIG7 : Rem follower
MPIG8 : Rem Flamethrower
MPIG9 : Rem superpig
End Proc
Procedure LEV41
MPIG7 : Rem follower
MPIG8
End Proc
Procedure LEV42
MPIG7
MPIG9
End Proc
Procedure LEV43
MPIG7
MPIG8
'
End Proc
Procedure LEV44
Bob 5,320,220,77
Bob 7,-20,190,77
Rem jetbikes
Amal 5,"Loop: A 30,(77,3)(78,3);M -310,0,90;A 30,(79,3)(80,3);M 310,0,90;J Loop" : Amal On(5)
Amal 7,"Loop: A 30,(79,6)(80,6);M 320,0,80; A 30,(77,6)(78,6);M -320,0,80;J Loop" : Amal On(7)
Bob Update Off
Autoback 0
Do
Wait Vbl : Bob Update
If Spritebob Col(0,5 To 7) Then ROGERHIT
If LEV=5 Then LEV50
ZAP
JCHECK
PLAT
If Spritebob Col(0,50 To 50) Then FLIGHT : LEV=5 : LEVELSORT
Loop
End Proc
Procedure FLIGHT
Bob Update On
Amal Off
Sprite 0,100,100,1 : Wait 50
Amal 13,"A 50,(25,4)(26,4);M 0,-400,300" : Amal On(13)
Sam Play 1,2,1200
Wait 260
End Proc
Procedure LEV50
Bob Update Off
Autoback 0
Tempo 19
Do
Wait Vbl : Bob Update
ZAP
If Spritebob Col(0,51 To 51) Then GOTBIKE
JCHECK
PLAT
If Spritebob Col(0,5 To 6) Then ROGERHIT
Loop
End Proc
Procedure DEAD
Amal Off
Sprite 0,,Y Sprite(0)+10,11
Wait 100
Cls 0
Locate 10,10 : Paper 0 : Print "Out Of Energy...."
Locate 10,12 : Print " GAME OVER"
LEV=0 : Wait 200
Sprite Off : Run "choose.amos"
End Proc
Procedure GOTBIKE
Amal Off
Bob Update On
Amal 0,"L A=22;Loop: M 0,-10,10;M 0,-10,15;M 0,-5,20;M 0,0,5;M 0,5,20;M 0,10,15;M 0,10,10;M 0,0,5;J Loop"
Amal On(0)
Amal 15,"A 0,(30,8)(31,8)(32,8)(33,6);L RH=0;L RF=0;" : Amal On(15)
Locate 12,10 : Print "WELL DONE ! !"
Wait 500 : Amal Off : LEV=0 : Music Off
Run "choose.amos"
End Proc
Procedure DROP
If Amreg(10)>0 Then Pop Proc
If H>0 Then Pop Proc
If Sprite Col(0,4 To 4) Then Pop Proc
If Chanmv(1) Then Pop Proc
D$="M 0,10,5"
Amal 1,D$ : Amal On(1)
End Proc
Procedure ZAP
If Chanmv(1) Then Pop Proc
If Joy(1)=1 Then WEAPONS : Rem fire has been pressed
End Proc
Procedure NOMOVE
Amal Off(1)
Amal Off(0)
Amal 0,"L RL=0" : Amal On(0)
End Proc
Procedure MVUP
If Sprite Col(0,4 To 4) Then Goto PLATON : Rem On platform
If H=0 Then Pop Proc
PLATON: Rem
If Amreg(9)=1 Then Pop Proc
If JP=8 Then J$="M 18,-32,16;M 15,0,7;M 18,32,16"
If JP=0 Then J$="L A=22;Move 0,-30,20 ;M 0,-5,25; M 0,35,20"
If JP=4 Then J$="M -18,-32,16;M -15,0,7;M -18,32,16"
Amal 1,J$ : Amal On(1)
End Proc
Procedure MVDN
If Chanan(2) Then Pop Proc
If JS=8 Then PUMPRIGHT
If JS=4 Then PUMPLEFT
End Proc
Procedure PUMPRIGHT
If Amreg(11)>0 Then Pop Proc
If Chanmv(1) Then Pop Proc
Amal Off(0) : Amal Off(1)
Amal 0,"A 1,(49,5)(50,5)(51,5)" : Amal On(0)
Sprite 2,X Sprite(0)+6,Y Sprite(0)-2,52
Amal 2,"A 1,(52,5)(53,8)(9,10);M 0,0,20;Let RA=1" : Amal On(2)
Sam Play 8,3,22000
End Proc
Procedure PUMPLEFT
If Amreg(11)>0 Then Pop Proc
If Chanmv(1) Then Pop Proc
Amal Off(0) : Amal Off(1)
Amal 0,"A 1,(54,5)(55,5)(56,5)" : Amal On(0)
Sprite 2,X Sprite(0)-14,Y Sprite(0)+4,52
Amal 2,"A 1,(57,5)(58,8)(9,10);M 0,0,20;Let RA=1" : Amal On(2)
Sam Play 8,3,22000
End Proc
Procedure MVR
If Amreg(11)=1 Then Goto SKIPAN1
Amal 0,"L RL=1;A 0,(1,8)(2,8)(3,8)(2,8)" : Amal On(0)
' If Amreg(11)>0 Then Pop Proc
SKIPAN1: Rem
If Sprite Col(0,4 To 4) Then Goto MRIGHT
If H=0 Then Pop Proc
MRIGHT: Rem Sprite is on platform
If Joy(1)<>8 Then Amal Off(1)
PLAT
SH$="M 6,0,6" : Amal 1,SH$ : Amal On(1)
' If Chanan(0) Then Pop Proc
J=1
End Proc
Procedure MVL
If Amreg(11)=2 Then Goto SKIPAN2
Amal 0,"L RL=2;A 0,(4,8)(5,8)(6,8)(5,8)" : Amal On(0)
' If Amreg(11)>0 Then Pop Proc
SKIPAN2: Rem
If Sprite Col(0,4 To 4) Then Goto MLEFT
If H=0 Then Pop Proc
MLEFT: Rem Sprite is touching platform
If Joy(1)<>4 Then Amal Off(1)
PLAT
SH$="M -6,0,6" : Amal 1,SH$ : Amal On(1)
' If Chanan(0) Then Pop Proc
End Proc
Procedure WEAPONS
If Amreg(12)=1 Then Pop Proc
Amal Off(0)
If JS=4 Then PLEFT
If JS=8 Then PRIGHT
Rem hit right.........
End Proc
Procedure PRIGHT
If Amreg(12)>0 Then Pop Proc
Sprite 0,,,2
Sprite 2,X Sprite(0),Y Sprite(0)-9,9
Amal 2,"L RM=1;A 1,(13,3)(14,3)(15,8)(14,3)(13,3)(9,5);M 0,0,10;L RM=0;L RA=0" : Amal On(2)
End Proc
Procedure PLEFT
If Amreg(12)>0 Then Pop Proc
Sprite 0,,,5
Sprite 2,X Sprite(0)-18,Y Sprite(0)-9,9
Amal 2,"L RM=1;A 1,(16,3)(17,3)(18,8)(17,3)(16,3)(9,5);M 0,0,10;L RM=0;L RA=0" : Amal On(2)