Amal 0,"S:MR0,R1,1;IX<130JL;A:IX>447JR;B:IY>200JD;C:IY<50JU;JS;U:LY=50;JS;D:LY=200;JC;L:LX=130;JA;R:LX=447;JB"
Amal On 0
Bob 0,200,150,15
Channel 1 To Bob 0
Amal 1,"S:IJ1=4JL;IJ1=8JR;JS;N:A0,(15,1);JS;L:IX<10JN;A0,(9,5)(10,5)(9,5)(11,5);A:IX<10JN;M-1,0,1;IJ1<>4JN;JA;R:IX>309JN;A0,(12,5)(13,5)(12,5)(14,5);B:IX>309JN;M1,0,1;IJ1<>8JN;JB"
Amal On 1
LS:
Proc SETUP
Procedure SETUP
Make Mask
Amal Freeze
Bob Draw
Wait 10
For T=0 To 3
WALL(T)=0
Next T
For T=10 To 13
Bob T,-100,-100,5
Bob Off T+6
Next T
Bob Clear
Cls 0
Bob Draw
Cls 0
Bob Clear
Wait 10
Cls 0
Pen 3
Locate 0,0
Centre "GET READY..."
Locate 0,10
If LEVEL=0
A$="the ork encampment"
End If
If LEVEL=1
A$="the eldar base"
End If
If LEVEL=2
A$="the evil squat stronghold"
End If
Print "entering zone ";SCRN;" of level ";LEVEL
Print "(";A$;")"
Screen Swap
Bob Draw
Wait 5
Bob Clear
Wait 5
Cls 0
Restore(100*(LEVEL+1))+SCRN
Read A
Read NAS
If NAS=-1
Paste Bob 150,25,86
End If
For T=0 To 9
Paste Icon T*32,10,A
Next T
Do
Read A,B,C
If A=0 and B=0 and C=0
Exit
Else
Paste Icon A,B,C
End If
Loop
For T=10 To 13
Read A,B,C
If A=0 and B=0 and C=0
Exit
Else
Set Bob T,1,,
Bob T,A,B,C
WALL(T-10)=1
If C=83
Set Zone T-9,A,B-64 To A+32,B
End If
If C=84
Set Zone T-9,A,B-32 To A+32,B
End If
If C=85
Set Zone T-9,A,B-20 To A+64,B
End If
End If
Next T
Wait 50
Read ENEMYS
Pen 3 : Paper 0
Print At(0,20);"Player1:"
Pen 6
Print At(0,21);"ARMOUR"
Pen 8
Print At(0,23);"SCORE"
Pen 3
Print At(30,20);"Player2:"
Pen 6
Print At(30,21);"ARMOUR"
Pen 8
Print At(30,23);"SCORE"
Pen 9
Print At(14,20);"ENEMYS"
Pen 3
Screen Copy Logic(0) To Physic(0)
100 Data 1,1,0,0,0,0,100,85,256,100,85,0,0,0,30
101 Data 1,2,0,0,0,100,90,83,200,90,83,0,0,0,35
102 Data 2,2,0,0,0,100,90,83,200,90,83,110,130,84,190,130,84,35
103 Data 2,3,128,10,3,0,0,0,150,90,83,0,0,0,40
104 Data 4,4,0,0,0,50,90,83,250,90,83,80,90,85,188,90,85,50
105 Data 2,4,0,0,0,0,0,0,50
106 Data 3,4,0,0,0,50,100,84,200,100,84,200,100,84,284,100,84,55
107 Data 2,-1,0,0,0,0,0,0,0
200 Data 1,1,0,0,0,0,90,84,50,100,84,150,90,84,200,100,84,35
201 Data 1,2,0,0,0,135,90,83,0,0,0,40
202 Data 2,3,0,0,0,130,90,85,0,0,0,45
203 Data 2,4,0,0,0,0,0,0,50
204 Data 4,5,0,0,0,130,80,86,56,80,86,204,80,86,0,0,0,50
205 Data 4,5,0,0,0,0,90,83,90,90,83,180,90,83,270,90,83,55
206 Data 2,-1,0,0,0,0,0,0,10
300 Data 1,1,0,0,0,0,100,85,50,100,85,150,100,85,200,100,85,30
301 Data 2,2,0,0,0,135,90,83,200,90,86,0,0,0,20
302 Data 3,3,0,0,0,130,90,85,0,0,0,20
303 Data 4,4,0,0,0,0,0,0,20
304 Data 1,5,0,0,0,130,80,86,56,80,86,204,80,86,0,0,0,25
305 Data 2,5,0,0,0,0,90,83,90,90,83,180,90,83,270,90,83,30
Amal 2,"S:MR0,R1,1;IX<130JL;A:IX>447JR;B:IY>200JD;C:IY<50JU;JS;U:LY=50;JS;D:LY=200;JC;L:LX=130;JA;R:LX=447;JB"
Amal On 2
Bob 1,200,150,15
Channel 3 To Bob 1
Amal 3,"S:IJ0=4JL;IJ0=8JR;JS;N:A0,(15,1);JS;L:IX<10JN;A0,(9,5)(10,5)(9,5)(11,5);A:IX<10JN;M-1,0,1;IJ0<>4JN;JA;R:IX>309JN;A0,(12,5)(13,5)(12,5)(14,5);B:IX>309JN;M1,0,1;IJ0<>8JN;JB"
Amal 0,"S:MR0,R1,1;IX<130JL;A:IX>447JR;B:IY>200JD;C:IY<50JU;JS;U:LY=50;JS;D:LY=200;JC;L:LX=130;JA;R:LX=447;JB"
Amal On 0
Bob 0,200,150,15
Channel 1 To Bob 0
Amal 1,"S:IJ1=4JL;IJ1=8JR;JS;N:A0,(15,1);JS;L:IX<10JN;A0,(9,5)(10,5)(9,5)(11,5);A:IX<10JN;M-1,0,1;IJ0<>4JN;JA;R:IX>309JN;A0,(12,5)(13,5)(12,5)(14,5);B:IX>309JN;M1,0,1;IJ0<>8JN;JB"
Amal 1,"A1,(27,5)(28,5)(29,5)(30,5)(31,5);M0,0,100;LX=-50"
If MUSIX=0 : Boom : End If
Amal On 1
Bob Off 2
P1=-1
End If
End If
If Col(1)=-1 and P2=1
If MUSIX=0 : Shoot : End If
EN2=EN2-D
EUD2=2
If EN2<0
Amal 2,""
Amal Off 3
Sprite 9,0,0,
Amal 3,"A1,(27,5)(28,5)(29,5)(30,5)(31,5);M0,0,100;LX=-50"
If MUSIX=0 : Boom : End If
Amal On 3
Bob Off 3
P2=-1
End If
End If
If P1<1 and P2<1 Then TERMINATE=1
End Proc
Procedure UDATE
If NMEUD>0
Dec NMEUD
Print At(14,22);ENEMYS;" "
End If
If EUD1>0
Dec EUD1
Print At(0,22);EN1;" "
End If
If EUD2>0
Dec EUD2
Print At(30,22);EN2;" "
End If
If SUD1>0
Dec SUD1
Print At(0,24);SC1;" ";
End If
If SUD2>0
Dec SUD2
Print At(30,24);SC2;" ";
End If
End Proc
Procedure SHOP
Amal Freeze
If NAS=-1 Then Proc LEVELSOLVED
P1=Max(P1,0)
P2=Max(P2,0)
Bob Clear
Cls 0
Screen Swap
Bob Clear
Cls 0
Pen 6
Locate 0,0
Centre "Inter-Level Shoppe"
If MUSIX=0 : Bell : End If
Wait 10
Reset Zone
For T=0 To 1
For T2=1 To 4
Paste Bob 10+(T*200),20+(T2*20),17+T+((T2-1)*2)
Set Zone T2+(T*4),10+(T*200),20+(T2*20) To 40+(T*200),40+(T2*20)
Z=T2+(T*4)
Gosub DAT
Locate X Text(40+(T*200)),Y Text(20+(T2*20))
Print C
Next T2
Next T
Paste Bob 10,120,25
Locate 3,15
Print "AMMO:200"
Set Zone 9,10,120 To 20,130
Screen Copy Logic(0) To Physic(0)
Clear Key
EN1=25 : EN2=25
Amal On
Do
If P1=1
Amreg(0,0)=Jright(1)*-2+(Jleft(1)*2)
Amreg(0,1)=Jdown(1)*-2+(Jup(1)*2)
End If
If P2=1
Amreg(2,0)=Jright(0)*-2+(Jleft(0)*2)
Amreg(2,1)=Jdown(0)*-2+(Jup(0)*2)
End If
If LAM1>1000 Then LAM1=1000
If LAM2>1000 Then LAM2=1000
If RAM1>1000 Then RAM1=1000
If RAM2>1000 Then RAM2=1000
Locate 0,20
Print "PLAYER 1 AMMO:";LAM1;" ";RAM1;" ";
Locate 0,22
Print "PLAYER 2 AMMO:";LAM2;" ";RAM2;" ";
Locate 0,24 : Print CSH1;" ";
Locate 28,24 : Print CSH2;" ";
If Fire(1)=-1 and P1=1 and Hzone(X Sprite(8),Y Sprite(8))>0
Z=Hzone(X Sprite(8),Y Sprite(8))
Gosub DAT
PL=1
If CSH1>=C
CSH1=CSH1-C
Gosub BUY
End If
End If
If Fire(0)=-1 and P2=1 and Hzone(X Sprite(9),Y Sprite(9))>0
Z=Hzone(X Sprite(9),Y Sprite(9))
Gosub DAT
PL=2
If CSH2>=C
CSH2=CSH2-C
Gosub BUY
End If
End If
If Inkey$<>""
Inc SCRN
Pop Proc
End If
Screen Swap : Wait Vbl
Loop
Pop Proc
DAT:
If Z=1 Then P=2 : C=500 : N=1
If Z=2 Then P=2 : C=1500 : N=2
If Z=3 Then P=2 : C=2000 : N=3
If Z=4 Then P=2 : C=1000 : N=4
If Z=5 Then P=1 : C=0 : N=1
If Z=6 Then P=1 : C=1500 : N=2
If Z=7 Then P=1 : C=2000 : N=3
If Z=8 Then P=1 : C=1000 : N=4
If Z=9 Then P=3 : C=200
Return
BUY:
If MUSIX=0 : Bell : End If
If PL=1
If P=1
RA1=N
RAM1=100
End If
If P=2
LA1=N
LAM1=100
End If
If P=3
LAM1=LAM1+100 : RAM1=RAM1+100
End If
End If
If PL=2
If P=1
RA2=N
RAM2=100
End If
If P=2
LA2=N
LAM2=100
End If
If P=3
LAM2=LAM2+100 : RAM2=RAM2+100
End If
End If
Wait 5
Return
End Proc
Proc X
Procedure X
For T=0 To 50
Bob Clear
Bob Draw
Screen Swap : Wait Vbl
Next T
Bob Clear
Cls 0
Screen Swap
Cls 0
Autoback 1
If P2=0
Locate 0,0
Centre "TOUGH LUCK SUCKER"
Else
Locate 0,0
Centre "TOUGH LUCK SUCKERS"
End If
Locate 0,2
Centre "YOU GOT WASTED"
Locate 0,4
Print "Player 1 scored ";SC1
If SC1>SCORE
Print "a new high score,please enter your name dude "
Input NAME$
End If
Print
If P2=-1
Print "Player 2 scored ";SC2
If SC2>Max(SCORE,SC1)
Print "a new high score,please enter your name dude "
Input NAME$
End If
End If
SCORE=Max(SCORE,Max(SC1,SC2))
Wait 200
Bob Clear
Autoback 0
Cls 0
Screen Swap
Cls 0
Curs Off
SC1=0
SC2=0
End Proc
Goto 1
2
Proc SHOP
Goto LS
Procedure BIGNAS
If LEVEL=0
Bob 4,185,35,67
Channel 4 To Bob 4
Amal 4,"LR0=0;LR2=50;A:A1,(67,5)(68,5)(67,5)(69,5)(67,5);M0,0,25;LR0=1;N:IR0=0JA;JN"
Amal On 4
OON(0)=9
Bob 5,180,82,71
Channel 5 To Bob 5
Amal 5,"LR0=0;LR2=50;A:A1,(71,5)(72,5)(71,5)(73,5)(71,5);M0,0,50;LR0=4;N:IR0=0JA;JN"
Amal On 5
OON(1)=9
For T=6 To 7
OON(T-4)=9
Bob T,150+((T-6)*59),38,70
Channel T To Bob T
Amal T,"LR0=0;LR2=20;A:M0,0,50;LR0=5;N:IR0=0JA;JN"
Amal On T
Next T
End If
If LEVEL=1
Bob 4,185,80,67
Channel 4 To Bob 4
Amal 4,"LR0=0;LR2=100;L:A0,(70,5)(71,5);M0,0,20;LR9=RX;IZ(255)>128JS;LR9=RV;S:LX=RX;A1,(71,5)(72,5)(69,5);M0,0,30;IZ(255)>128JF;LR0=1;A0,(72,3)(69,3);B:IR0=0JL;JB;F:M0,0,50;A0,(73,3)(69,3);LR0=4;C:IR0=0JL;JC"
Amal On 4
OON(0)=9
End If
If LEVEL=2
Bob 4,0,80,69
Channel 4 To Bob 4
Amal 4,"LR0=0;LR2=200;A0,(70,5)(69,5);L:FR1=0T319;M1,0,1;IR0=0JF;A:NR1;FR1=0T319;M-1,0,1;IR0=0JG;B:NR1;JL;F:LR0=8;JA;G:LR0=8;JB"