home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1978-01-25 | 2.3 KB | 110 lines |
- C=Point(100,100)
- If C=7 Then PICK$="truck"
- If C=8 Then PICK$="house"
- If C=9 Then PICK$="ball"
- If C=10 Then PICK$="sword"
- If C=11 Then PICK$="felts"
- If C=12 Then PICK$="torch"
- If C=13 Then PICK$="teddy"
- If C=14 Then PICK$="book"
- Screen Open 0,320,256,16,Lowres
- Palette $0,$0,$F00
- Pen 2
- Hide On
- Locate 0,10 : Curs Off : Centre "Welcome to"
- Wait 100
- Locate 0,13 : Centre "WITCH LAND"
- Show On
- PAUSE
- Hide On
- HITS=0 : Cls
- Curs Off
- Locate 0,10 : Centre " "
- Locate 0,13 : Centre "The witch has been expecting you"
- Locate 0,15 : Centre "and has sent her monster"
- Locate 0,17 : Centre "to kill you."
- Load "monster3.abk",5 : Unpack 5 To 1 : Screen To Front 0 : Screen Hide 1
- Load "monster1.abk",5
- Show On
- PAUSE
- Unpack 5 To 0
- Screen Show 1
- Hide On
- If PICK$<>"sword" Then Goto WFAIL
- Load "sword.abk"
- WANIM1:
- Timer=0
- Screen To Front 0
- Do
- Sprite 1,X Mouse,Y Mouse,8
- Exit If Timer>20
- Loop
- Timer=0
- Screen To Front 1
- Do
- If Mouse Key>0 Then Q=X Mouse : W=Y Mouse : Boom : Sprite 1,Q,W,9 : Wait 6 : Sprite 1,Q,W,10 : Wait 20 : Inc HITS
- Sprite 1,X Mouse,Y Mouse,8
- Exit If Timer>20
- Loop
- Goto SKIP
- Do
- If Mouse Key>0 Then Boom
- Screen To Front 4 : Screen Show 4
- Exit If Timer>40
- Loop
- SKIP:
- If HITS>15 Then Goto WNEXT
- Goto WANIM1
- WNEXT:
- Sprite Off : Screen 0 : Cls : Screen 1 : Cls
- Sprite Off
- Get Sprite Palette
- W:
- Sprite Off
- Screen 0 : Screen To Front 0
- Palette $0,$0,$F00
- Locate 0,10 : Curs Off : Centre "Well done !"
- Locate 0,12 : Centre "You have killed the witch's monster."
- Locate 0,15 : Centre "But you have made the witch "
- Locate 0,17 : Centre "very angry."
- PAUSE
- Run "witch3.amos"
- Procedure PAUSE
- Do
- Exit If Inkey$=""
- Loop
- Do
- Exit If Mouse Key=0
- Loop
- Do
- Exit If Inkey$<>""
- Exit If Mouse Key>0
- Loop
- End Proc
- WFAIL:
- G=0
- WFAILW:
- Timer=0
- Screen To Front 0
- Do
- Exit If Timer>20
- Loop
- Timer=0
- Screen To Front 1
- Do
- Exit If Timer>20
- Loop
- Inc G : If G>3 Then Goto WFAIL1
- Goto WFAILW
- WFAIL1:
- Screen 0 : Cls : Screen To Front 0 : Palette $0,$0,$F00 : Paper 0 : Pen 2
- Locate 5,10 : Print "You wave your ";PICK$;" wildy at"
- Locate 0,12 : Centre "the monster but it just laughs at"
- Locate 0,14 : Centre "you in a very unpleasant manner."
- PAUSE
- Locate 0,17 : Centre "You decide to return home quickly"
- Locate 0,19 : Centre "and to fetch something more useful."
- PAUSE
- Fade 5 : Wait 100
- Screen Close 1 : Cls : Ink 5 : Paint 100,100
- Run "witch.amos"