home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
326-350
/
apd350
/
autoexec.amos
/
autoexec.amosSourceCode
Wrap
AMOS Source Code
|
1991-09-25
|
4KB
|
124 lines
Rem**********************************************
Screen Open 0,320,256,16,Lowres
Palette $0,$F9F,$6 : Limit Mouse 120,40 To 450,300
X Mouse=330 : Y Mouse=80
NAVS
Cls
Load "envelope.abk",5 : Load "toys.abk",6
Limit Mouse 120,40 To 450,300 : TEST1=0 : Curs Off : NKEY=0 : NARNIA$=""
Global NKEY,NARNIA$
Limit Mouse 120,40 To 458,300
Cls : Locate 1,7 : Input "What is your name? ";NAME$
Wait 20 : Locate 1,10 : Print "What is the number or"
Locate 1,12 : Input "name of your house? ";NUMBER$
Wait 20 : Locate 1,15 : Input "What road do you live in? ";ROAD$
Wait 20 : Locate 1,18 : Input "What town do you live in? ";TWN$
Wait 20 : Locate 1,21 : Input "What City do you live in? ";CITY$ : Wait 50 : Cls
Unpack 6 To 0
Limit Mouse 120,40 To 458,300
Paper 6 : Wait 50
Locate 10,10 : Print "One day you are at"
Locate 10,12 : Print "home playing with"
Locate 10,14 : Print "your toys when you"
Locate 10,16 : Print "hear a letter drop"
Locate 10,18 : Print "from the letter box."
Ink 6 : Clear Key
Do
K$=Inkey$
Exit If Mouse Key=1
Exit If K$<>""
Loop
Bell
Bar 72,72 To 241,152
Unpack 5 To 0 : Limit Mouse 120,40 To 450,300
Limit Mouse 120,40 To 458,300
Erase 5 : Load "letter.abk",5
Paper 2 : Pen 0 : Curs Off
Locate 10,12 : Print NAME$
Locate 11,14 : Print NUMBER$;" ";ROAD$
Locate 12,16 : Print TWN$
Locate 13,18 : Print CITY$
PAUSE
Procedure PAUSE
Do
Exit If Mouse Key=0
Loop
Do
K$=Inkey$
Exit If Mouse Key>0
Exit If K$<>""
Loop
Bell
End Proc
Cls : Wait 30
Locate 2,10 : Curs Off : Print "You open the letter and read it."
Procedure COORDINATES
Limit Mouse 120,40 To 458,300
Do
If Mouse Key=1 Then Q=X Mouse : W=Y Mouse : Locate 20,22 : Print " " : Locate 20,22 : Curs Off : Print Q;" ";W
Exit If Mouse Key=2
Loop
End Proc
PAUSE
Limit Mouse 120,40 To 458,300
Unpack 5 To 0
PAUSE
Pen 0
Cls : Wait 30
Locate 2,10 : Curs Off : Print "You go back to your bedroom and"
Locate 2,12 : Print "choose a toy to take with you."
PAUSE
Procedure NAVS
Hide On
Locate 0,2 : Centre "STORYLAND2"
Locate 0,3 : Centre "**************************************"
Locate 0,6 : Centre "Storyland2 is an activity adventure"
Locate 0,8 : Centre "written by David Alexander"
Locate 0,10 : Centre "using Amos."
Locate 0,12 : Centre "Special thanks go to Valerie Clarke"
Locate 0,14 : Centre "who created the original characteurs"
Locate 0,16 : Centre " and to Luke Miller who"
Locate 0,18 : Centre "created most of the music."
Locate 0,21 : Centre "**************************************"
Locate 0,28 : Centre "**************************************"
Locate 0,23 : Centre "DO YOU CARE FOR ANIMALS ?"
Locate 0,26 : Centre "y/n ?"
SD:
Clear Key
Do
K$=Inkey$
Exit If K$<>""
Loop
If K$="n"
Cls
Locate 0,10 : Centre "Only children who love animals"
Locate 0,12 : Centre "are allowed to play this game."
PAUSE : End
End If
If K$="N"
Cls
Locate 0,10 : Centre "Only children who love animals"
Locate 0,12 : Centre "Are allowed to play this game."
PAUSE : End
End If
If K$="y" Then Goto GOOD
If K$="Y" Then Goto GOOD
Goto SD
GOOD:
Bell : Cls
Curs Off
Locate 0,3 : Centre "WELCOME TO STORYLAND"
Locate 0,4 : Centre "**********************"
Locate 0,8 : Centre "I'm glad that you love animals"
Locate 0,10 : Centre "and I hope you enjoy this game."
Locate 0,12 : Centre "Unfortunatey some people do"
Locate 0,14 : Centre "cruel things to animals."
Locate 0,18 : Centre "If you manage to kill the witch"
Locate 0,20 : Centre "at the end of this game, I will"
Locate 0,22 : Centre "tell you what you can do to"
Locate 0,24 : Centre "help animals."
Locate 0,28 : Centre "CLICK THE MOUSE BUTTON TO START."
PAUSE
Show On
End Proc
Run "2.amos"