home *** CD-ROM | disk | FTP | other *** search
| AMOS Source Code | 1993-02-25 | 1.6 KB | 56 lines |
- 'don't ask what this is about!! maybe the start of an educational game??
- '
- Rem raining
- Rem bobs 1-9 are digits 1-9 bob 10 is a 0
- Rem bob 11 is a + bob 12 is a - bob 13 is a X bob 14 / bob 15 is =
- Rem bob 16 is pointer < bob 17 pointer >
- '
- '
- Screen Open 0,336,200,16,Lowres
- Flash Off : Paper 0 : Curs Off : Cls 0 : Get Sprite Palette
- Screen Open 1,336,16,4,Lowres
- Flash Off : Paper 0 : Curs Off : Cls 0 : Colour 1,$345
- Screen Display 1,,256,,
- Screen 0 : Rem All future operations should be directed at screen 0
- Double Buffer : Rem Stop the flickering
- Hide
- SCORE=0 : Gosub SCOREUPDATE
- '
- '
- Rem turn sprite 17 to mouse pointer
- Get Sprite Palette
- Channel 15 To Sprite 1
- A$="L: Let X=XM; Let Y=YM; Jump L"
- Sprite 1,1,1,17 : Amal 1,A$ : Amal On
- '
- '
- For A=1 To 10 : Channel A To Bob A : Next A
- ACR=16
- For A=1 To 10
- DWN=Rnd(100)
- Bob A,ACR,-DWN,A
- Move Y A,"( 1,1,310)"
- ACR=ACR+Rnd(32)+16
- Next A
- Move On
- '
- L:
- If Spritebob Col(1,1 To 10)
- Gosub CHECKHIT
- End If
- Wait 10
- Goto L
- '=================================================================================================================================== '
- '
- SCOREUPDATE:
- If B=0 Then B=10
- SCORE=SCORE+B
- Screen 1 : Rem Direct all future output to screen number 1
- SCORE$=Right$("0000000"+Mid$(Str$(SCORE),2),7) : Rem Add a few zero's to the start of the score so that it looks more professional!
- Pen 1 : Print At(17,0);SCORE$ : Rem print the amount of score of the screen at coardinates 17,0
- Screen 0 : Return : Rem Direct all future output to screen number 0
- CHECKHIT:
- For N=1 To 10
- If Col(N) Then B=N : Gosub SCOREUPDATE
- Next N
- Return