home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd455
/
read_me
/
read_me.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1992-11-28
|
9KB
|
245 lines
'Dir$="UXB_Data:"
Auto View Off
Screen Open 1,680,260,16,Hires : Paper 0 : Cls : Screen Hide 1
Gosub FIRST
Load Iff "Screens/Read_Me",0 : Screen Hide 0
Load "Bobs/Read_Me.abk"
Load "FX/Music.abk"
Get Sprite Palette
Screen 0 : Fade 1
Wait 15
Screen Show 0
Auto View On
Screen 0 : Fade 5 To Logic(0)
Music 1
Hide On
For A=1 To 81000
Next A
For A=63 To 1 Step -1
Volume A
For V=1 To 800 : Next V
If A=20 Then Fade 5
Next A
Music Stop : Wait 20 : Volume 63
Screen Copy 1 To 0
Wind Open 1,180,180,26,5,1 : Border 1,7,2 : Paper 0 : Clw : Pen 2 : Print : Print " Press Mouse Button"; : Curs Off
Screen 0 : Fade 5 To Logic(0)
Repeat : Until Mouse Key
Fade 5
Wait 75
Goto SECOND
FIRST:
Screen 1
Gr Writing 0 : Pen 1
Text 255,80,"SHORT-OUT"
Text 255,82,"_________"
Text 10,100,"Your task is to disconnect a timer from an explosive device, before the"
Text 10,112,"timer reaches zero, causing the device to detonate. You have at your "
Text 10,124,"disposal, a piece of modern technology that has everything that is needed"
Text 10,136,"for a succesful operation:"
Curs Off
Return
SECOND:
Screen Close 0
Load "Bobs/UXB.abk" : Get Sprite Palette
Auto View Off
Load Iff "Screens/Main",2 : Screen Hide 2
Screen 2 : Ink 1 : Bar 100,104 To 110,114 : Bar 135,104 To 145,114 : Bar 170,104 To 180,114 : Wait Vbl
Screen Open 1,680,140,16,Hires : Get Palette 2 : Paper 0 : Cls : Screen Hide 1
Auto View On
Screen To Front 2 : Screen To Front 1
Screen 2 : Fade 1 : Wait 15 : Screen 1 : Fade 1 : Wait 15
Screen Display 1,138,40,680,140
Screen 1 : Paper 2 : Cls : Wait Vbl : Gr Writing 0 : Ink 6
Text 10,10,"The way to disconnect the timer, is to make wire connections from your"
Text 10,20,"machine to the device. This is done by pointing the mouse to the desired"
Text 10,30,"connector (from the row of orange circles below) and clicking on it."
Text 10,40,"You must then point to the connector on the device you wish to connect"
Text 10,50,"to, and click. Press mouse now for a demonstration."
Text 10,75," This is your machine:-"
Curs Off
Screen Show 2 : Screen Show 1
Screen 1 : Fade 5 To Logic(1) : Wait 75 : Screen 2 : Fade 5 To Logic(1)
Wait 75
Repeat : Until Mouse Key
Screen To Back 1
X=430 : Y=69
X Mouse=430 : Y Mouse=69
Show On
Bob 1,280,142,1
Channel 1 To Bob 1
Amal 1,"A0,(1,5)(2,5);"
Amal On 1
DX=Sgn(X-186) : DY=Sgn(Y-191)
Repeat
X Mouse=X Mouse-DX : Y Mouse=Y Mouse-DY
If X Mouse=186 Then DX=0
If Y Mouse=191 Then DY=0
For A=1 To 200 : Next A
Until(X Mouse=186) and(Y Mouse=191)
X Mouse=186 : Y Mouse=191
Play 1,50,10
Wait 5
Bob 1,300,105,1
For A=1 To 44
X Mouse=X Mouse+1
Y Mouse=Y Mouse-1
For B=1 To 500 : Next B
Next A
X Mouse=232 : Y Mouse=150
Play 1,50,1
Ink 8 : Bar 77,212 To 96,227 : Bar 107,212 To 126,227
Bob 1,280,160,1
Wind Save
Wind Open 1,0,0,26,5,1 : Paper 0 : Clw
Print : Print " Press Mouse Button"; : Curs Off
Repeat : Until Mouse Key
Wind Close
Screen 1 : Cls 2 : Screen To Front 1
Hide On
Text 10,10,"Did you notice two things ? Firstly, the prompt arrow on the right"
Text 10,20,"side of the screen, showing where your selection must be made from,"
Text 10,30,"and secondly, that light A and B on the bottom row lit up ?"
Text 10,42,"This shows the effect that this connection will have. You may then"
Text 10,52,"choose to make this connection or cancel it, by selecting the relevant"
Text 10,62,"box. If you connect it, the connection may not be undone at a later stage."
Text 10,75,"Press mouse for a demonstration"
Repeat : Until Mouse Key
Screen To Back 1 : Screen 1 : Cls 2
Screen 2
Show On
Bob 1,300,105,1
For A=1 To 1000 : Next A
Bob 1,280,160,1
X Mouse=232 : Y Mouse=150
For Y=153 To 210
Y Mouse=Y
For A=1 To 300 : Next A
Next Y
X Mouse=232
Play 1,70,10
Ink 8 : Draw 59,150 To 104,110
Draw 60,150 To 105,110 : Draw 58,150 To 103,110
Bob 1,280,142,1
Wind Open 1,0,0,26,5,1 : Paper 0 : Clw
Print : Print " Press Mouse Button"; : Curs Off
Repeat : Until Mouse Key
Wind Close
Screen 1 : Cls 2 : Screen To Front 1
Text 10,10,"The objective is to make all the necessary connections to light"
Text 10,20,"all lights, A to E and hit the power switch before the timer "
Text 10,30,"reaches zero. Sounds easy ? well not quite, making different"
Text 10,40,"connections will have different combinations of effects."
Text 10,50,"There are 3 effects:"
Text 10,62," 1) Turns a light ON."
Text 10,72," 2) Turns it OFF"
Text 10,82," 3) Makes it do the opposite of what it is doing"
Text 10,92," (ie) if it is ON, turns it OFF and vice versa"
Text 10,104," Press Mouse Button"
Hide On
Repeat : Until Mouse Key
Screen 1 : Fade 5 : Wait 75
Cls 2
Text 10,10,"The other gadgets are Power, Disconnect all and Help."
Text 10,20,"Power is the button to be pressed when all lights are on, this"
Text 10,30,"effectively disarms the bomb, and you have won."
Text 10,42,"Disconnect all is in case you get into a total mess (and you will !)"
Text 10,52,"but don't use it unnecessarily, don't forget that time limit."
Text 10,64,"Help will tell you what the different combinations of connections"
Text 10,74,"will do (more to follow)...."
Text 10,86,"Press Mouse Button"
Fade 5 To Logic(1)
Show On : Bob 1,280,185,1
Repeat : X Mouse=274 : Y Mouse=233
Until Mouse Key
Fade 5 : Wait 75
Cls 2
Text 10,10,"Selecting HELP will open a help box similar to the box below :"
Text 10,20,"+ means turn a light on, - is for off and ^ for swap."
Text 10,32,"So for this level, connecting 1 on your machine to 3 on the device,"
Text 10,42,"Would cause light A to light up, Connecting 2 on your machine to 1"
Text 10,52,"on the device would cause B to light up and C to extinguish."
Text 10,62,"Connecting 3 to 2 would cause A to extinguish and D to do the opposite"
Text 10,72,"of whatever it is doing at the time the connection is made."
Text 10,90,"Press Mouse Button"
Hide On
Fade 5 To Logic(1)
Screen 2 : Wind Open 1,90,160,16,10,1 : Paper 0 : Clw : Pen 3
Print : Print " 1/3 .. A+"
Print " 2/1 .. B+,C-"
Print " 3/2 .. A-,D^" : Curs Off
Bob 1,280,212,1
Repeat : Until Mouse Key
Bob Off
Wind Close
Screen 1 : Fade 5 : Wait 75
Cls 2
Text 10,10,"A word of warning, don't use the HELP option in the early stages unless"
Text 10,20,"you really need it, because it will only help out twice, and you are"
Text 10,30,"more likely to need it in the higher levels. The correct way to find out"
Text 10,40,"what the effects are is to experiment with different connections, and"
Text 10,50,"then cancel them."
Text 10,62," There are ten levels of play, each getting slightly more difficult."
Text 10,72,"After succesful completion of each level, you will be given an Access "
Text 10,82,"code to enter at that level, and also a clue for the 'End Game'"
Text 10,94,"Press Mouse Button"
Fade 5 To Logic(1)
Repeat : Until Mouse Key
Fade 5 : Wait 75
Screen 2 : Fade 5 : Wait 75 : Screen Close 2
Cls 2
Auto View Off
Screen Open 1,680,256,16,Hires : Paper 0 : Cls
Auto View On
Screen Display 1,140,40,,
Screen Hide 1
Screen 1
Ink 10 : Paper 0 : Gr Writing 0
Text 230,10,"End Game"
Text 230,11,"________"
Text 10,30,"This is the ultimate circuit, it consists of a counter, a timer and 11"
Text 10,40,"assorted coloured wires- Red, Blue, Green or Yellow."
Text 10,52,"The counter is set to a value of 60, and the timer to 40 seconds. You must"
Text 10,62,"cut the wires in the correct order to reduce the counter to EXACTLY zero,"
Text 10,72,"before the time on the timer runs out."
Text 10,85,"The counter must read not more and not less than zero when all the wires"
Text 10,95,"are cut, and there must be NO wires remaining intact when the conuter"
Text 10,105,"reaches zero."
Text 10,117,"The wires are cut simply by guiding the pair of wirecutters over the "
Text 10,127,"selected wire with the mouse, and pressing the mouse button."
Text 10,139,"You have as long as you like to study the device, but once you hit"
Text 10,149,"the START gadget, the 40 seconds start to count down."
Text 10,161,"But how do you know how to calculate the cutting sequence ? This is where"
Text 10,171,"the clues given to you during the main game come in handy."
Text 10,181,"You may be told for example that a Red wire followed by a Blue results"
Text 10,191,"in a 2 unit countdown, and a Blue before a Green, a 1 Unit countdown."
Text 10,203,"It follows then, that if you cut Red,Blue,Green, the counter will reach"
Text 10,213,"57. (Because 60 - 2(Red/Blue) -1(Blue/Green)=57 and so on..."
Curs Off
Fade 5 : Wait 75
Screen Show 1
Fade 5 To Logic(1)
Repeat : Until Mouse Key
Fade 5
Cls 0
Text 10,10,"Well, that's about it. I hope you enjoy playing the game, and you don't"
Text 10,22,"lose too much sleep. Remember, patience is a virtue."
Text 10,34,"If you do enjoy the game, then keep a look out for the follow up,"
Text 10,46,"I'm working on it at this minute. Good luck."
Text 10,106,"Press Mouse Button to begin"
Fade 5 To Logic(1)
DE=1
Music 1
Repeat
DE=DE+1
Until(Mouse Key) or(DE=9200)
If Mouse Key Then MK=1
For A=63 To 1 Step -1
Volume A
For V=1 To 800 : Next V
Next A
Music Off : Wait 20 : Volume 63
Repeat
Until(Mouse Key) or(MK=1)
Fade 5 : Wait 75
End