home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
351-375
/
apd360
/
reels.amos
/
reels.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1991-09-02
|
41KB
|
1,243 lines
Rem=============REELS By Tom and Kev=========================================
'
Rem===This is a very large program So,
Rem===I have tried to number each part in order of operation as far as
Rem===possible and found it very hard, so forgive me where I failed
Rem===And I have numbered each proc to help you know if you have reached
Rem===the one you want or have passed it.
'P02
Screen Open 0,320,200,16,Lowres
Cls 0
Screen Open 1,320,200,32,Lowres
Hide
'P04
Load Iff "TITLE3.IFF",1
Get Bob 110,74,80 To 157,152 : Get Bob 111,180,80 To 263,152
Get Bob 112,286,80 To 370,152 : Get Bob 113,388,80 To 471,152
Get Bob 114,488,80 To 572,152 : Get Bob 115,74,154 To 264,184
'P06
Cls 0
Bell : Paste Bob 74,80,110 : Wait 50
Bell : Paste Bob 180,80,111 : Wait 50
Bell : Paste Bob 286,80,112 : Wait 50
Bell : Paste Bob 388,80,113 : Wait 50
Bell : Paste Bob 488,80,114 : Wait 60
Bell : Paste Bob 74,154,115 : Wait 90
Bob Off
Screen Close 1
Screen Close 0
'P10..........................List of global variables......................
Global A,B,C,D,E,F,GR,H,J,K,L,M,N,P,Q,R,S,T,TS,U,V,VW,W,X,Z,STAART,GOES,TRIES
Global PAIR,SCORE,NUDGES,AGAIN,PLANE,MARIO,FROG,MERMAID,BIKE,WIZARD,SCOOP
Global ZON13,ZON14,ZON15,ZON16,ZON17,ZON18,HOLD_1,HOLD_2,HOLD_3,HOLD_4,HOLD_5
Global PITURE,TYME,HI_SCORE,SELECT_1,SELECT_2,SELECT_3,SELECT_4,SELECT_5
Global GAMBLE,WIPE,BONUS,LIM,THIS_SCORE,LAST_SCORE,LEFT,DROOP
'
'P20=========================CREATE PLAYING AREA===================
Rem--Extra high screen to mount 8 bobs high then get them as one long bob
Screen Open 2,360,800,16,Lowres
Flash Off : Curs Off
'
'
'P25.......................Load bank to pick images from....................
Load "REELS6.abk"
'
'P30.....................Paste images to make the long bob.................
Paste Bob 320,0,12 : Paste Bob 320,96,13 : Paste Bob 320,192,12
Paste Bob 320,288,13 : Paste Bob 320,384,12 : Paste Bob 320,480,13
Paste Bob 320,576,12 : Paste Bob 320,672,13
'
'P35 ............................Then get long BOB and clear screen.........
Get Bob 1,320,0 To 352,768
Cls
'
'P40...............................Paste 2 bobs for score oblongs
Paste Bob 10,20,26 : Paste Bob 64,20,27
'
'P50...............................Get them in one Bob and clear screen......
Get Bob 2,10,20 To 119,35
Cls
'
'P55.................Paste 2 bobs for score oblongs at top of screen.....
Paste Bob 10,40,98 : Paste Bob 73,40,27
'
'P60 ........................Make One Long Bob and clear screen.............
Get Bob 3,10,40 To 128,55
Cls 0
'
'P70...........Put The Iff Picture of Border On To The Screen and get Palette
Load Iff "OURPICT.iff",1
Get Sprite Palette
'
'P75....................Add the Reel and hold borders........................
Paste Bob 45,46,14 : Paste Bob 93,46,14 : Paste Bob 141,46,14
Paste Bob 189,46,14 : Paste Bob 237,46,14
'
'P80 ...................Now the Top Score select oblongs.....................
Paste Bob 100,6,3 : Paste Bob 104,9,43 : Paste Bob 154,9,42
Paste Bob 6,26,3 : Paste Bob 10,29,95 : Paste Bob 60,29,42
Paste Bob 196,26,3 : Paste Bob 200,29,44 : Paste Bob 250,29,42
'
'P85......................Put the long lines across....................
Paste Bob 4,21,7 : Paste Bob 100,21,7 : Paste Bob 196,21,7
Paste Bob 220,21,7
Paste Bob 4,41,7 : Paste Bob 100,41,7 : Paste Bob 196,41,7
Paste Bob 220,41,7
Paste Bob 4,120,7 : Paste Bob 100,120,7 : Paste Bob 196,120,7
Paste Bob 220,120,7
Paste Bob 4,215,7 : Paste Bob 100,215,7 : Paste Bob 196,215,7
Paste Bob 220,215,7
'
'P90...................Make double buffer for smooth movement............
Double Buffer
'
'P95...................Paste Game Name ....................................
Paste Bob 128,28,91
'
'P100=================SELECT RANDOM FIRST IMAGE NO.s and HOLD IN MEMORY====
W=Rnd(5) : If W=0 Then W=6
U=Rnd(5) : If U=0 Then U=6
P=Rnd(5) : If P=0 Then P=6
N=Rnd(5) : If N=0 Then N=6
Q=Rnd(5) : If Q=0 Then Q=6
'
'P105..................Reserve all zones once and for all ...................
Reserve Zone 27
'
'P110........Now set all zones except left hand scoring oblongs........
'..............because you can't set one zone on top of another
'
'.............set zone for HELP .................
Set Zone 27,140,146 To 180,164
'
'............ set zones for five HOLD buttons ....................
Set Zone 1,48,105 To 79,117 : Set Zone 2,96,105 To 127,117
Set Zone 3,144,105 To 175,117 : Set Zone 4,192,105 To 223,117
Set Zone 5,240,105 To 271,117
'
'............. set zone for the start button "KLIK"
Set Zone 6,278,105 To 309,117
'
'..................Set zones for 6 Right Side scoring oblongs.....................
Set Zone 13,209,128 To 309,139 : Set Zone 14,199,143 To 299,154
Set Zone 15,191,158 To 291,169 : Set Zone 16,182,173 To 282,184
Set Zone 17,173,188 To 273,199 : Set Zone 18,163,203 To 263,214
'
'..................Set zones for YES And NO..........................
Set Zone 19,145,138 To 166,151 : Set Zone 20,148,164 To 166,177
'
'
'========That is the screen set up for the first show======================
'
Show
'......... AGAIN=False here first time so the program ignores the next part
'................. until sent here from the Goto AGAIN instruction
'
'P200+P360 ..................Now AGAIN = true..........................
AGAIN:
'
If AGAIN=True
'...................These insts. stop program while reels are moving.....
While Chanmv(1)
Wend
While Chanmv(2)
Wend
While Chanmv(3)
Wend
While Chanmv(4)
Wend
While Chanmv(5)
Wend
'
'P210+P370........Test whether to paste the word HOLD on buttons.......
'
If HOLD_1=False : Paste Bob 48,105,11 : End If
If HOLD_2=False : Paste Bob 96,105,11 : End If
If HOLD_3=False : Paste Bob 144,105,11 : End If
If HOLD_4=False : Paste Bob 192,105,11 : End If
If HOLD_5=False : Paste Bob 240,105,11 : End If
End If
'
'P120+P220+P380======First stage carries on from here=====================
'==============Allocate channels to bobs.Make position "Y" variable Letters==
'....Using the 1st RDM image No.s and placing them at lowest positions.......
'...............Ready for the first spin of the reels.....................
'..............Use Limit bob to make bob windows..........................
'
A=-486 : B=-646 : C=-614 : D=-582 : E=-550 : F=-518
Channel 1 To Bob 1
If W=1 Then Bob 1,48,A,1
If W=2 Then Bob 1,48,B,1
If W=3 Then Bob 1,48,C,1
If W=4 Then Bob 1,48,D,1
If W=5 Then Bob 1,48,E,1
If W=6 Then Bob 1,48,F,1
Limit Bob 63,50 To 286,98
'
Channel 2 To Bob 2
If U=1 Then Bob 2,96,A,1
If U=2 Then Bob 2,96,B,1
If U=3 Then Bob 2,96,C,1
If U=4 Then Bob 2,96,D,1
If U=5 Then Bob 2,96,E,1
If U=6 Then Bob 2,96,F,1
Limit Bob 63,50 To 286,98
'
Channel 3 To Bob 3
If P=1 Then Bob 3,144,A,1
If P=2 Then Bob 3,144,B,1
If P=3 Then Bob 3,144,C,1
If P=4 Then Bob 3,144,D,1
If P=5 Then Bob 3,144,E,1
If P=6 Then Bob 3,144,F,1
Limit Bob 63,50 To 286,98
'
Channel 4 To Bob 4
If N=1 Then Bob 4,192,A,1
If N=2 Then Bob 4,192,B,1
If N=3 Then Bob 4,192,C,1
If N=4 Then Bob 4,192,D,1
If N=5 Then Bob 4,192,E,1
If N=6 Then Bob 4,192,F,1
Limit Bob 63,50 To 286,98
'
Channel 5 To Bob 5
If Q=1 Then Bob 5,240,A,1
If Q=2 Then Bob 5,240,B,1
If Q=3 Then Bob 5,240,C,1
If Q=4 Then Bob 5,240,D,1
If Q=5 Then Bob 5,240,E,1
If Q=6 Then Bob 5,240,F,1
Limit Bob 63,50 To 286,98
'
Bell
'P125====From here it goes to NEW_GAME_RESET to reset the scores and counters
'............................at the start of each complete game ............
If AGAIN=False
NEW_GAME_RESET_1
'
'P150..........Paste klick On Start Button & Print Text Insts.............
KLICKING_3
'
End If
'..................NUDGES does not=True yet so we skip the next part
'P390.............Now it does.................................
If NUDGES=True
NUDGES_11
'P460.............................
SELECTYOURHAND_16
'...........................Now we state it's the end of a game
If TRIES=36
'
FLAASH_2
AGAIN=False
Goto AGAIN
End If
Wait Vbl
Rem ======================== Prepare for next hand=======================
'
NUDGES=False : STAART=False : AGAIN=False : ESCAPE=False
SELECT_1=False : SELECT_2=False : SELECT_3=False
SELECT_4=False : SELECT_5=False
HOLD_1=False : HOLD_2=False : HOLD_3=False : HOLD_4=False : HOLD_5=False
'
GOES=0 : L=0 : PAIR=0
'...................... Paste blanks over "SCORE" buttons ...........
Paste Bob 48,105,4 : Paste Bob 96,105,4
Paste Bob 144,105,4 : Paste Bob 192,105,4 : Paste Bob 240,105,4
'
'..............Paste klick On Start Button & Print Text Insts................
KLICKING_3
'
'.............................Paste the number of credits left.........
Paste Bob 18,106,M
Paste Bob 26,106,S
'
End If
'
'P230...........Test it is not the first go of three. AGAIN would = FALSE
If GOES<3 and AGAIN=True
STAART=False
If GOES=1 and LEFT<6 and THIS_SCORE>24
GAMBLING_6
End If
HOLDING_8
'P240..............................................
' '=============this part repeats until the holds have been selected
' '=================and the KLICK button clicked on===========
Repeat
'............................Reel one.................................
If Hzone(X Mouse,Y Mouse)=1 and Mouse Key<>0
If SELECT_1=False
If HOLD_1=False
Paste Bob 48,105,10 : Rem ..............HELD button
HOLD_1=True
Else
Paste Bob 48,105,11 : Rem ..............Hold button
HOLD_1=False
End If
End If
Wait 14 : Rem..............................To stop multiple kliks
End If
'
'.............................Reel two................................
If Hzone(X Mouse,Y Mouse)=2 and Mouse Key<>0
If SELECT_2=False
If HOLD_2=False
Paste Bob 96,105,10
HOLD_2=True
Else
Paste Bob 96,105,11
HOLD_2=False
End If
End If
Wait 14 : Rem.....to stop multiple kliks..........
End If
'
'...................................Reel three..............................
If Hzone(X Mouse,Y Mouse)=3 and Mouse Key<>0
If SELECT_3=False
If HOLD_3=False
Paste Bob 144,105,10
HOLD_3=True
Else
Paste Bob 144,105,11
HOLD_3=False
End If
End If
Wait 14 : Rem.....to stop multiple kliks..........
End If
'
'..................................Reel four...............................
If Hzone(X Mouse,Y Mouse)=4 and Mouse Key<>0
If SELECT_4=False
If HOLD_4=False
Paste Bob 192,105,10
HOLD_4=True
Else
Paste Bob 192,105,11
HOLD_4=False
End If
End If
Wait 14 : Rem.....to stop multiple kliks..........
End If
' ................................Reel five......................
If Hzone(X Mouse,Y Mouse)=5 and Mouse Key<>0
If SELECT_5=False
If HOLD_5=False
Paste Bob 240,105,10
HOLD_5=True
Else
Paste Bob 240,105,11
HOLD_5=False
End If
End If
Wait 14 : Rem.....to stop multiple kliks..........
End If
'
'P250......................................................
'Test for Klick button which will make STAART=true.& Klick button green
If Hzone(X Mouse,Y Mouse)=6 and Mouse Key<>0
Paste Bob 278,106,17 : Rem.....................Green button
STAART=True
Ink 0,0
S$="THIS WILL BLANK OUT ABOVE WORDS "
Text 50,238,S$
'P260.............................
Inc GOES : TRIES_NUM_4
End If
Until STAART=True or GOES=3
Wait Vbl
'
'P280..........Introduce SELECT to freeze HOLDS when KLIK is pressed...
'
If HOLD_1=False : SELECT_1=False : Else SELECT_1=True : End If
'
If HOLD_2=False : SELECT_2=False : Else SELECT_2=True : End If
'
If HOLD_3=False : SELECT_3=False : Else SELECT_3=True : End If
'
If HOLD_4=False : SELECT_4=False : Else SELECT_4=True : End If
'
If HOLD_5=False : SELECT_5=False : Else SELECT_5=True : End If
'
'P290....Test if there have been three goes, and if so, make NUDGES true..
If GOES=3 : NUDGES=True : End If
End If
'
'P160+260+300===Picking out the next random numbers to decide how many images
'...................to move up, and hold them in memory....
'==============================REEL 1==================================
'
REEL_1:
If HOLD_1=True Then Goto REEL_2 :
'
V=Rnd(5)
If V=0 Then V=6
'
'......................... .......Move up 12 first ......................
A$=" For RD=1 To 12; Let Y=Y-1; Pause; Next RD; Pause"
A$=A$+"For RD=1 To 3; Let Y=Y+4; Next RD; Pause"
'
'.................Then move to just 18 before the image......................
If V=1
A$=A$+"For RD=1 To 95; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
If V=2
A$=A$+"For RD=1 To 103; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
If V=3
A$=A$+"For RD=1 To 111; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
If V=4
A$=A$+"For RD=1 To 71; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
If V=5
A$=A$+"For RD=1 To 79; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
If V=6
A$=A$+"For RD=1 To 87; Let Y=Y+4; Next RD; Pause; Let Y=Y+2"
End If
'
' .................. Slow down run to 16 past selected image...........
A$=A$+"For RD=1 To 14; Let Y=Y+3; Next RD; Pause"
A$=A$+"For RD=1 To 4; Let Y=Y+2; Next RD; Pause; Pause; Pause; Pause; Pause; Pause"
'
' ........................Now 16 back after halt .........................
A$=A$+"For RD=1 To 4; Let Y=Y-1; Next RD; Pause"
A$=A$+"For RD=1 To 12; Let Y=Y-1; Pause; Next RD; Pause"
'
Amal 1,A$
'Rem============================Reel 2 ===================================
REEL_2:
If HOLD_2=True Then Goto REEL_3
R=Rnd(5)
If R=0 Then R=6
RU=R+U
If RU>6 Then RU=RU-6
'
'........................ .......Move up 12 first ......................
B$=" For RE=1 To 12; Let Y=Y-1; Pause; Next RE; Pause"
B$=B$+"For RE=1 To 3; Let Y=Y+4; Next RE; Pause"
'
'.................Then move to just 18 before the image......................
'
If R=1
B$=B$+"For RE=1 To 95; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
If R=2
B$=B$+"For RE=1 To 103; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
If R=3
B$=B$+"For RE=1 To 111; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
If R=4
B$=B$+"For RE=1 To 71; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
If R=5
B$=B$+"For RE=1 To 79; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
If R=6
B$=B$+"For RE=1 To 87; Let Y=Y+4; Next RE; Pause; Let Y=Y+2"
End If
'
' ................... Slow down run to 16 past selected image...........
B$=B$+"For RE=1 To 14; Let Y=Y+3; Next RE; Pause"
B$=B$+"For RE=1 To 4; Let Y=Y+2; Next RE; Pause; Pause; Pause; Pause; Pause; Pause"
'
' ......................Now 16 back after halt .........................
'
B$=B$+"For RE=1 To 4; Let Y=Y-1; Next RE; Pause"
B$=B$+"For RE=1 To 12; Let Y=Y-1; Pause; Next RE; Pause"
'
Amal 2,B$
'Rem===============================REEL 3================================
REEL_3:
If HOLD_3=True Then Goto REEL_4
X=Rnd(5)
If X=0 Then X=6
XP=X+P
If XP>6 Then XP=XP-6
'
'...............................Move up 12 first ......................
C$=" For RF=1 To 12; Let Y=Y-1; Pause; Next RF; Pause"
C$=C$+"For RF=1 To 3; Let Y=Y+4; Next RF; Pause"
'
'.................Then move to just 18 before the image......................
'
If X=1
C$=C$+"For RF=1 To 95; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
If X=2
C$=C$+"For RF=1 To 103; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
If X=3
C$=C$+"For RF=1 To 111; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
If X=4
C$=C$+"For RF=1 To 71; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
If X=5
C$=C$+"For RF=1 To 79; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
If X=6
C$=C$+"For RF=1 To 87; Let Y=Y+4; Next RF; Pause; Let Y=Y+2"
End If
'
' .................. Slow down run to 16 past selected image...........
C$=C$+"For RF=1 To 14; Let Y=Y+3; Next RF; Pause"
C$=C$+"For RF=1 To 4; Let Y=Y+2; Next RF; Pause; Pause; Pause; Pause; Pause; Pause"
'
' .......................Now 16 back after halt .........................
C$=C$+"For RF=1 To 4; Let Y=Y-1; Next RF; Pause"
C$=C$+"For RF=1 To 12; Let Y=Y-1; Pause; Next RF; Pause"
'
Amal 3,C$
'Rem============================Reel 4==================================
REEL_4:
If HOLD_4=True Then Goto REEL_5
Z=Rnd(5)
If Z=0 Then Z=6
ZN=Z+N
If ZN>6 Then ZN=ZN-6
'
'...............................Move up 12 first ......................
D$=" For RG=1 To 12; Let Y=Y-1; Pause; Next RG; Pause"
D$=D$+"For RG=1 To 3; Let Y=Y+4; Next RG; Pause"
'
'.................Then move to just 18 before the image......................
'
If Z=1
D$=D$+"For RG=1 To 95; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
If Z=2
D$=D$+"For RG=1 To 103; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
If Z=3
D$=D$+"For RG=1 To 111; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
If Z=4
D$=D$+"For RG=1 To 119; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
If Z=5
D$=D$+"For RG=1 To 79; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
If Z=6
D$=D$+"For RG=1 To 87; Let Y=Y+4; Next RG; Pause; Let Y=Y+2"
End If
'
' .................. Slow down run to 16 past selected image...........
D$=D$+"For RG=1 To 14; Let Y=Y+3; Next RG; Pause"
D$=D$+"For RG=1 To 4; Let Y=Y+2; Next RG; Pause; Pause; Pause; Pause; Pause; Pause"
'
' .....................Now 16 back after halt .........................
D$=D$+"For RG=1 To 4; Let Y=Y-1; Next RG; Pause"
D$=D$+"For RG=1 To 12; Let Y=Y-1; Pause; Next RG; Pause"
'
Amal 4,D$
'Rem============================REEL 5======================================
REEL_5:
If HOLD_5=True Then Goto CARRYON
T=Rnd(5)
If T=0 Then T=6
TQ=T+Q
If TQ>6 Then TQ=TQ-6
'
'.................................Move up 12 first ......................
E$=" For RH=1 To 12; Let Y=Y-1; Pause; Next RH; Pause"
E$=E$+"For RH=1 To 3; Let Y=Y+4; Next RH; Pause"
'
'.................Then move to just 18 before the image......................
'
If T=1
E$=E$+"For RH=1 To 95; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
If T=2
E$=E$+"For RH=1 To 103; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
If T=3
E$=E$+"For RH=1 To 111; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
If T=4
E$=E$+"For RH=1 To 71; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
If T=5
E$=E$+"For RH=1 To 79; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
If T=6
E$=E$+"For RH=1 To 87; Let Y=Y+4; Next RH; Pause; Let Y=Y+2"
End If
'
' .................. Slow down run to 16 past selected image...........
E$=E$+"For RH=1 To 14; Let Y=Y+3; Next RH; Pause"
E$=E$+"For RH=1 To 4; Let Y=Y+2; Next RH; Pause; Pause; Pause; Pause; Pause; Pause"
'
' ........................Now 16 back after halt .........................
E$=E$+"For RH=1 To 4; Let Y=Y-1; Next RH; Pause"
E$=E$+"For RH=1 To 12; Let Y=Y-1; Pause; Next RH; Pause"
'
Amal 5,E$
'
'P170+P310=============This is where we push the Klik button ...............
CARRYON:
If STAART=False
Paste Bob 278,106,17 : Rem...............make Staart button green
'P175+P320.......................Add 1 to GOES.........................
Inc GOES
'P180+P330..........down to proc TRIES_NUM_3 to put black blocks in frames
TRIES_NUM_4
End If
'P185+P340====Here the amals are turned on unless HOLDS are TRUE========
'===The first numbers are added to the second numbers and if they are ==
'==== more than 6 then 6 is deducted and you are left with next number
'
'.......NG is variable to test whether all hold buttons are held. If they
'....... are, go straight on to the "nudges" phase................
NG=2
If HOLD_1=False : NG=1 : Amal On 1 : W=W+V : If W>6 : W=W-6 : End If : End If
If HOLD_2=False : NG=1 : Amal On 2 : U=U+R : If U>6 : U=U-6 : End If : End If
If HOLD_3=False : NG=1 : Amal On 3 : P=P+X : If P>6 : P=P-6 : End If : End If
If HOLD_4=False : NG=1 : Amal On 4 : N=N+Z : If N>6 : N=N-6 : End If : End If
If HOLD_5=False : NG=1 : Amal On 5 : Q=Q+T : If Q>6 : Q=Q-6 : End If : End If
If NG=2 Then NUDGES=True : GOES=3 : TRIES_NUM_4
'
'
'P190+P350...................Turn AGAIN to TRUE..then go back to again......
AGAIN=True
Goto AGAIN
'===========================PROCS FROM HERE================================
'
'.......In this PROC we put the the changing parts of the program
Procedure NEW_GAME_RESET_1
'
'............Top and bottom of counter frame each side for 36 Tries...
Paste Bob 6,100,15 : Paste Bob 6,46,40
Paste Bob 274,100,15 : Paste Bob 274,46,40
'
'...................... Paste blanks over "SCORE" buttons ...........
Paste Bob 10,105,4 : Paste Bob 48,105,4 : Paste Bob 96,105,4
Paste Bob 144,105,4 : Paste Bob 192,105,4 : Paste Bob 240,105,4
'
'...............................paste KLICK Button...................
'Paste Bob 278,106,16 : Rem...3rd
'
'......................Number 36 in Tries left number frame
Paste Bob 18,106,33
Paste Bob 26,106,36
'
'.....................Left bottom Score select oblongs....................
Paste Bob 6,125,2 : Paste Bob 10,128,45 : Paste Bob 60,128,46
Paste Bob 16,140,2 : Paste Bob 19,143,47 : Paste Bob 70,143,48
Paste Bob 24,155,2 : Paste Bob 27,158,49 : Paste Bob 78,158,50
Paste Bob 32,170,2 : Paste Bob 36,173,51 : Paste Bob 86,173,52
Paste Bob 40,185,2 : Paste Bob 44,188,53 : Paste Bob 94,188,54
Paste Bob 50,200,2 : Paste Bob 54,203,55 : Paste Bob 104,203,56
'
'.........................Right bottom Score select oblongs............
Paste Bob 205,125,2 : Paste Bob 209,128,8 : Paste Bob 259,128,9
Paste Bob 195,140,2 : Paste Bob 198,143,28 : Paste Bob 249,143,29
Paste Bob 187,155,2 : Paste Bob 191,158,57 : Paste Bob 241,158,58
Paste Bob 178,170,2 : Paste Bob 182,173,59 : Paste Bob 232,173,60
Paste Bob 169,185,2 : Paste Bob 173,188,61 : Paste Bob 223,188,62
Paste Bob 159,200,2 : Paste Bob 163,203,63 : Paste Bob 213,203,64
'
'
Limit Mouse : Rem Releases mouse pointer
'
'P130---------Now we set the variable values for start and new games-
'
GOES=0 : TRIES=0 : TS=0 : L=0 : NUDGES=False : STAART=False : AGAIN=False
SELECT_1=False : SELECT_2=False : SELECT_3=False : SCORE=0 : PAIR=0 : SCOOP=0
SELECT_4=False : SELECT_5=False : H=10 : J=45 : K=278 : M=33 : S=36 : LEFT=0
HOLD_1=False : HOLD_2=False : HOLD_3=False : HOLD_4=False : HOLD_5=False
ZON13=True : ZON14=True : ZON15=True : ZON16=True : ZON17=True : ZON18=True
PLANE=True : MARIO=True : FROG=True : MERMAID=True : BIKE=True : WIZARD=True
'
'P135.....................Puts Last Score on screen.....................
LAST_SCORE=THIS_SCORE
Ink 11,4
S$=Right$("0000"+Mid$(Str$(LAST_SCORE),2),4)
Text 278,36,S$
'
'P140.....................Changes HI_SCORE if needed.................
If LAST_SCORE>HI_SCORE
HI_SCORE=LAST_SCORE
Ink 11,4
S$=Right$("0000"+Mid$(Str$(HI_SCORE),2),4)
Text 182,16,S$
End If
'
'P145.....................Brings This_Score down to zero................
Ink 11,4
S$=Right$("0000"+Mid$(Str$(0),2),4)
Text 88,36,S$
THIS_SCORE=0
End Proc
'
Procedure FLAASH_2
Curs Off
Repeat
Ink 11,0
S$="END OF GAME -- HOLD LEFT MOUSE"
Text 40,238,S$
Wait 40
Ink 0,0
S$="THIS WILL BLANK OUT THE ABOVE-"
Text 40,238,S$
Wait 10
Until Mouse Key<>0
End Proc
'
Procedure KLICKING_3
Paste Bob 278,106,16
Paste Bob 140,146,102
Do
Ink 11,0
S$="CLICK ON TO START"
Text 70,238,S$
Ink 9,14
T$="KLIK"
Text 142,238,T$
If Hzone(X Mouse,Y Mouse)=6 and Mouse Key<>0
Ink 0,0
V$="THIS WILL BLANK OUT ABOVE"
Text 70,238,V$
Paste Bob 140,146,101
Pop Proc
End If
If Hzone(X Mouse,Y Mouse)=27 and Mouse Key<>0
HELP_19
End If
Loop
End Proc
'
'P260...........................................
'This proc counts the "TRIES" & puts black blocks in the counter frames......
'.....................K=278...H=10 and J=45 and TS=0.L=0.................
Procedure TRIES_NUM_4
If L<3
'P270..................we go to TRINUM_5 to dec the printed number
TRINUM_5
Inc TS : Inc TRIES
J=J+4
Paste Bob H,J,99
Paste Bob K,J,99
Inc L
'
If TS=3 : J=J+1 : End If
If TS=6 : J=J+1 : End If
If TS=9 : J=J+1 : End If
If TS=12
If TRIES=24
J=45 : H=32 : K=300 : TS=0
Else
J=45 : H=21 : K=289 : TS=0
End If
'
End If
'
End If
End Proc
'
'P270..............................................................
Procedure TRINUM_5
'This proc blanks out the credit number of tries & then puts in new number..
'....................M=tens,..S=units...............................
Paste Bob 10,105,4
Dec S
If S=29 : Dec M : S=39
End If
If M>30
Paste Bob 18,106,M
End If
Paste Bob 26,106,S
End Proc
'
Procedure GAMBLING_6
Wait Vbl
Ink 6,4
S$="GAMBLE TO GET FOUR OF A KIND ?"
Text 50,238,S$
Bob 8,145,138,92
Bob 9,148,164,93
GAMBLE=10
Repeat
If Hzone(X Mouse,Y Mouse)=19 and Mouse Key<>0
GAMBLE=True : End If
If Hzone(X Mouse,Y Mouse)=20 and Mouse Key<>0
GAMBLE=False : End If
Until GAMBLE=True or GAMBLE=False
Bob Off 8
Bob Off 9
If GAMBLE=True Then GAMBLING_7
End Proc
'
Procedure GAMBLING_7
GAMBLE=10
Ink 6,4
S$="CLICK ON ARROW FOR SELECTION "
Text 50,238,S$
'
'..................Set zones for six Arrows
Set Zone 21,78,128 To 110,137 : Set Zone 22,88,143 To 120,152
Set Zone 23,96,158 To 128,167 : Set Zone 24,104,173 To 136,182
Set Zone 25,112,188 To 144,197 : Set Zone 26,122,203 To 154,212
If PLANE=True Then Bob 10,78,128,94
If MARIO=True Then Bob 11,88,143,94
If FROG=True Then Bob 12,96,158,94
If MERMAID=True Then Bob 13,104,173,94
If BIKE=True Then Bob 14,112,188,94
If WIZARD=True Then Bob 15,122,203,94
Repeat
If Hzone(X Mouse,Y Mouse)=21 and Mouse Key<>0 and PLANE=True
Bob 16,78,128,94 : GAMBLE=True : LIM=1 : End If
If Hzone(X Mouse,Y Mouse)=22 and Mouse Key<>0 and MARIO=True
Bob 17,88,143,94 : GAMBLE=True : LIM=2 : End If
If Hzone(X Mouse,Y Mouse)=23 and Mouse Key<>0 and FROG=True
Bob 18,96,158,94 : GAMBLE=True : LIM=3 : End If
If Hzone(X Mouse,Y Mouse)=24 and Mouse Key<>0 and MERMAID=True
Bob 19,104,173,94 : GAMBLE=True : LIM=4 : End If
If Hzone(X Mouse,Y Mouse)=25 and Mouse Key<>0 and BIKE=True
Bob 20,112,188,94 : GAMBLE=True : LIM=5 : End If
If Hzone(X Mouse,Y Mouse)=26 and Mouse Key<>0 and WIZARD=True
Bob 21,122,203,94 : GAMBLE=True : LIM=6 : End If
Until GAMBLE=True
Reset Zone 21 : Reset Zone 22 : Reset Zone 23
Reset Zone 24 : Reset Zone 25 : Reset Zone 26
Bob Off 10 : Bob Off 11 : Bob Off 12 : Bob Off 13 : Bob Off 14 : Bob Off 15
End Proc
'
'P240......................................................
Procedure HOLDING_8
Wait Vbl
Paste Bob 278,106,16 : Rem...1st
Ink 11,0
S$="SELECT HOLDS & CLICK ON KLIK "
Text 50,238,S$
End Proc
'
'P430.................................................
Procedure NUDGEHINT_9
Ink 11,0
S$="USE NUDGES OR CLICK ON SCORE TO CLEAR"
Text 10,238,S$
End Proc
'
'
'P400.............................................................
Procedure NUDGES_11
'...........................Animate the nudge numbers up and down 3 times
Channel 10 To Bob 10
Bob 10,278,49,22 : Wait 10
Amal 10,"Anim 3,(18,10)(19,10)(20,10)(21,10)(22,10);"
Amal On 10 : Wait 150 : Amal Off 10
Bob Off 10 : Paste Bob 278,49,22
'.....................Pick out random nudge number and go to Nudge_num
Wait Vbl
GR=Rnd(4)
'P410............................
If GR>0 Then NUDGE_NUM_13
'P420..............................
NUDGE_12
End Proc
'
'..........................Paste the word Nudge on five buttons..........
'
'P420.....................................
Procedure NUDGE_12
If GR=0 Then Goto MISS_NUDGES
Paste Bob 48,105,25 : Paste Bob 96,105,25 : Paste Bob 144,105,25
Paste Bob 192,105,25 : Paste Bob 240,105,25
'
'........................paste the word SCORE over the start button...
Paste Bob 278,106,23
'
Repeat
If Hzone(X Mouse,Y Mouse)=1 and Mouse Key<>0
NUDGE_1$=" For RK=1 To 32; Let Y=Y+1; Next RK; Pause"
Amal 1,NUDGE_1$
Amal On 1 : Wait 35 : Dec GR
NUDGE_NUM_13
W=W+1 : If W>6 : W=W-6 : End If
End If
'
If Hzone(X Mouse,Y Mouse)=2 and Mouse Key<>0
NUDGE_2$=" For RL=1 To 32; Let Y=Y+1; Next RL; Pause"
Amal 2,NUDGE_2$
Amal On 2 : Wait 35 : Dec GR
NUDGE_NUM_13
U=U+1 : If U>6 : U=U-6 : End If
End If
'
If Hzone(X Mouse,Y Mouse)=3 and Mouse Key<>0
NUDGE_3$=" For RM=1 To 32; Let Y=Y+1; Next RM; Pause"
Amal 3,NUDGE_3$
Amal On 3 : Wait 35 : Dec GR
NUDGE_NUM_13
P=P+1 : If P>6 : P=P-6 : End If
End If
'
If Hzone(X Mouse,Y Mouse)=4 and Mouse Key<>0
NUDGE_4$=" For RN=1 To 32; Let Y=Y+1; Next RN; Pause"
Amal 4,NUDGE_4$
Amal On 4 : Wait 35 : Dec GR
NUDGE_NUM_13
N=N+1 : If N>6 : N=N-6 : End If
End If
'
If Hzone(X Mouse,Y Mouse)=5 and Mouse Key<>0
NUDGE_5$=" For RO=1 To 32; Let Y=Y+1; Next RO; Pause"
Amal 5,NUDGE_5$
Amal On 5 : Wait 35 : Dec GR
NUDGE_NUM_13
Q=Q+1 : If Q>6 : Q=Q-6 : End If
End If
'P430......................................
NUDGEHINT_9
Until GR=0 or Hzone(X Mouse,Y Mouse)=6 and Mouse Key<>0 : Rem Start button
Ink 0,0
S$="HOPEFULLY THIS WILL BLANK OUT ABOVE"
Text 8,238,S$
MISS_NUDGES:
'........................paste the word SCORE over the start button...
Paste Bob 278,106,23
'
'P440............................................
CLONE_IT_14
'P450..............................................
SCORE_15
End Proc
'
'P410...................................
Procedure NUDGE_NUM_13
If GR=1 Then Paste Bob 278,49,21
If GR=2 Then Paste Bob 278,49,20
If GR=3 Then Paste Bob 278,49,19
If GR=4 Then Paste Bob 278,49,18
End Proc
'
'
'P440................................
Procedure CLONE_IT_14
'...................................called from Proc NUDGE...........
'............Puts identical copy of frame over to the right side ..
Get Bob 41,6,46 To 42,101
Paste Bob 274,46,41
End Proc
'
'P450................................
Procedure SCORE_15
'.......................called from Proc NUDGE............
'........................Paste "SCORE" under each reel
Paste Bob 48,106,23 : Paste Bob 96,106,23
Paste Bob 144,106,23 : Paste Bob 192,106,23 : Paste Bob 240,106,23
'
End Proc
'P460....................................
Procedure SELECTYOURHAND_16
'
If GAMBLE=True
TRAPPOINT_18
End If
'P470.....Finds out what hand is displayed for right side...............
If W=U : Inc PAIR : End If : If W=P : Inc PAIR : End If
If W=N : Inc PAIR : End If : If W=Q : Inc PAIR : End If
If U=P : Inc PAIR : End If : If U=N : Inc PAIR : End If
If U=Q : Inc PAIR : End If : If P=N : Inc PAIR : End If
If P=Q : Inc PAIR : End If : If N=Q : Inc PAIR : End If
'
'P480..............bonus for five the same...................
If PAIR=10
BONUS=100
SCORE=SCORE+BONUS
Ink 11,4
B$=" FIVE IN A ROW BONUS POINTS "
Text 30,238,B$
S$=Right$("000"+Mid$(Str$(BONUS),2),3)
Text 260,238,S$
Wait 80
Ink 0,0
B$="THIS LINE WILL ERASE ABOVE"
Text 30,238,B$
S$=Right$("000"+Mid$(Str$(BONUS),2),3)
Text 260,238,S$
'
End If
'
'P490..............................TEN SECOND TIMER WARNING..................
TYME=120
Repeat
If GAMBLE=True
Ink 6,4
S$=" PRESS LEFT MOUSE BUTTON NOW"
Text 30,238,S$
Goto PICKOUT
End If
'
'If GAMBLE=False Then Goto TENSEC
'TENSEC:
If TYME=120 Then Bell
If TYME>96
Ink 6,4
S$="YOU HAVE 10 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=96 Then Bell
If TYME<96 and TYME>72
Ink 6,4
S$="YOU HAVE 8 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=72 Then Bell
If TYME<72 and TYME>48
Ink 6,4
S$="YOU HAVE 6 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=48 Then Bell
If TYME<48 and TYME>36
Ink 6,4
S$="YOU HAVE 4 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=36 Then Bell
If TYME<36 and TYME>24
Ink 6,4
S$="YOU HAVE 3 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=24 Then Bell
If TYME<24 and TYME>12
Ink 6,4
S$="YOU HAVE 2 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
If TYME=12 Then Bell
If TYME<12 and TYME>0
Ink 6,4
S$="YOU HAVE 1 SECS TO SELECT YOUR CHOICE"
Text 8,238,S$
End If
'
PICKOUT:
'P500.......................Bottom right hand side score oblongs.......
ESCAPE=False : PITURE=0
If Hzone(X Mouse,Y Mouse)=13 and Mouse Key<>0
If PAIR>4 and ZON13=True : SCORE=SCORE+50 : ZON13=False
ESCAPE=True : Paste Bob 209,128,67 : Paste Bob 259,128,68
End If : End If
If Hzone(X Mouse,Y Mouse)=14 and Mouse Key<>0
If PAIR=10 or PAIR=4 and ZON14=True : SCORE=SCORE+45 : ZON14=False
ESCAPE=True : Paste Bob 198,143,69 : Paste Bob 249,143,70
End If : End If
If Hzone(X Mouse,Y Mouse)=15 and Mouse Key<>0
If PAIR=0 and ZON15=True : SCORE=SCORE+40 : ZON15=False
ESCAPE=True : Paste Bob 191,158,83 : Paste Bob 241,158,84
End If : End If
If Hzone(X Mouse,Y Mouse)=16 and Mouse Key<>0
If PAIR>2 and ZON16=True : SCORE=SCORE+35 : ZON16=False
ESCAPE=True : Paste Bob 182,173,85 : Paste Bob 232,173,86
End If : End If
If Hzone(X Mouse,Y Mouse)=17 and Mouse Key<>0
If ZON17=True and PAIR=2 or PAIR>3 : SCORE=SCORE+30 : ZON17=False
ESCAPE=True : Paste Bob 173,188,87 : Paste Bob 223,188,88
End If : End If
If Hzone(X Mouse,Y Mouse)=18 and Mouse Key<>0
If PAIR<2 and ZON18=True : SCORE=SCORE+25 : ZON18=False
ESCAPE=True : Paste Bob 163,203,89 : Paste Bob 213,203,90
End If : End If
'P510......................Bottom left hand score oblongs................
'
'.....SET ZONES 6 LEFT SIDE
Set Zone 7,10,128 To 110,139 : Set Zone 8,20,143 To 120,154
Set Zone 9,28,158 To 128,169 : Set Zone 10,36,173 To 136,184
Set Zone 11,44,188 To 144,199 : Set Zone 12,54,203 To 154,214
'
If Hzone(X Mouse,Y Mouse)=7 and Mouse Key<>0
If PLANE=True : PITURE=6 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*4
PLANE=False : Paste Bob 10,128,71 : Paste Bob 60,128,72 : Inc LEFT
End If : End If
If Hzone(X Mouse,Y Mouse)=8 and Mouse Key<>0
If MARIO=True : PITURE=5 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*7
MARIO=False : Paste Bob 20,143,73 : Paste Bob 70,143,74 : Inc LEFT
End If : End If
If Hzone(X Mouse,Y Mouse)=9 and Mouse Key<>0
If FROG=True : PITURE=4 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*5
FROG=False : Paste Bob 28,158,75 : Paste Bob 78,158,76 : Inc LEFT
End If : End If
If Hzone(X Mouse,Y Mouse)=10 and Mouse Key<>0
If MERMAID=True : PITURE=3 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*8
MERMAID=False : Paste Bob 36,173,77 : Paste Bob 86,173,78 : Inc LEFT
End If : End If
If Hzone(X Mouse,Y Mouse)=11 and Mouse Key<>0
If BIKE=True : PITURE=2 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*6
BIKE=False : Paste Bob 44,188,79 : Paste Bob 94,188,80 : Inc LEFT
End If : End If
If Hzone(X Mouse,Y Mouse)=12 and Mouse Key<>0
If WIZARD=True : PITURE=1 : SWOOP_17 : DROOP=SCOOP : SCOOP=SCOOP*9
WIZARD=False : Paste Bob 54,203,81 : Paste Bob 104,203,82 : Inc LEFT
End If : End If
'
Reset Zone 7 : Reset Zone 8 : Reset Zone 9
Reset Zone 10 : Reset Zone 11 : Reset Zone 12
Dec TYME
Until PITURE>0 or ESCAPE=True or TYME=0
Limit Mouse
'
Ink 0,0
S$="HOPEFULLY THIS WILL CLEAR THOSE WORDS"
Text 8,238,S$
'P510...............................................
If TYME=0
SCORE=SCORE-50
Ink 11,4
S$="OUT OF TIME LOSE 50 POINTS"
Text 56,238,S$
Wait 150
Ink 0,0
B$="THIS LINE WILL ERASE ABOVE"
Text 56,238,B$
End If
'P520..............................................
If GAMBLE=True and DROOP>3
SCOOP=100
GAMBLE=False
End If
If GAMBLE=True and DROOP<4
SCOOP=-25
GAMBLE=False
End If
Bob Off 16 : Bob Off 17 : Bob Off 18 : Bob Off 19 : Bob Off 20 : Bob Off 21
'P530...........................................
THIS_SCORE=THIS_SCORE+SCORE+SCOOP
SCORE=0 : SCOOP=0
Ink 11,4
S$=Right$("0000"+Mid$(Str$(THIS_SCORE),2),4)
Text 88,36,S$
End Proc
'
Procedure SWOOP_17
SCOOP=0
If PITURE=W Then Inc SCOOP
If PITURE=U Then Inc SCOOP
If PITURE=P Then Inc SCOOP
If PITURE=N Then Inc SCOOP
If PITURE=Q Then Inc SCOOP
End Proc
'
'
'P470.........................................
Procedure TRAPPOINT_18
If LIM=1 Then Limit Mouse 140,170 To 238,178
If LIM=2 Then Limit Mouse 145,185 To 245,193
If LIM=3 Then Limit Mouse 155,200 To 255,208
If LIM=4 Then Limit Mouse 165,215 To 265,223
If LIM=5 Then Limit Mouse 172,230 To 272,238
If LIM=6 Then Limit Mouse 182,245 To 280,253
End Proc
'
Procedure HELP_19
Screen Open 2,320,260,16,Lowres
Cls 6 : Pen 2 : Paper 6 : Hide : Flash Off : Curs Off
Print
Print
Print
Print
Print " You have 12 sets of three spins each "
Print "making 36 spins to each game & up to"
Print "four nudges per set."
Print
Print "On the first set try for five the same"
Print "(You always try for five the same "
Print "in ten of the twelve sets), because"
Print "five in a row gets you 100 bonus points"
Print
Print "If you get five you click on FOUR SAME"
Print "Then you will score the 100 bonus "
Print "plus the 50 for the FOUR SAME"
Print
Print "Of course if you cannot get the five"
Print "you make the best hand you can from "
Print "the right hand side"
Print
Print " WARNING WARNING WARNING WARNING"
Print
Print " AT THE END OF EACH SET"
Print " YOU HAVE TEN SECONDS TO CHOOSE "
Print " OR YOU LOSE 50 POINTS"
Print " SO DO NOT DITHER"
Print
Print
Print
Print "Press any key for next page"
Wait Key
Cls
Print
Print
Print
Print
Print "While we are on the subject of the "
Print "right hand side.*****Some Tips****,"
Print
Print "You can use Five the same on"
Print "FOUR SAME-THREE AND TWO-THREE SAME"
Print "TWO PAIR."
Print "You can use Four the same on"
Print "THREE SAME-TWO PAIR"
Print
Print "It is risky to finish the left hand "
Print "before the right hand side. "
Print
Print "Provided you have 25 points or more "
Print "When you spin for the second set "
Print "You will have a decision to make"
Print "TO GAMBLE OR NOT TO GAMBLE?"
Print
Print "Check the reels and see what you have"
Print "if you do not want to gamble just click"
Print "on NO and carry on"
Print
Print "If you do want to gamble click on YES"
Print
Print
Print
Print "Press any key for next page"
Wait Key
Cls
Print
Print
Print
Print
Print "You can only gamble on the left side "
Print "You are gambling to make four the same"
Print "If you win you get 100 points"
Print "If you lose, you lose 25 points"
Print "Plus that area cannot be used again"
Print
Print "If you manage five the same "
Print "you will also get the 100 bonus making "
Print "200 points for that area"
Print
Print "If you click on YES,arrows will appear"
Print "on the areas you can gamble on"
Print
Print "Click on arrow of the area you fancy "
Print "But do it right, you cannot change "
Print
Print "Then click on the HOLDS of the reels"
Print "Here you can change, until you roll"
Print
Print "TIP***You have a better chance on a "
Print "Gamble if you have two the same in"
Print "the frames and the sight of another "
Print "on its way down"
Print
Print "To clear unused nudges click on SCORE"
Print
Print
Print
Print "Press any Key to go back to game"
Wait Key
Screen Close 2
Show
End Proc