home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
No Fragments Archive 10: Diskmags
/
nf_archive_10.iso
/
MAGS
/
ST_USER
/
1990
/
USEROC90.MSA
/
LISTINGS_STOS.BAS
(
.txt
)
< prev
next >
Wrap
Atari STOS Basic
|
1990-08-19
|
11KB
|
74 lines
10 REM Simple ball dropping game
100 STOP
1000 REM start playing
1001 REM *************
1010 GOSUB
1020 REM Now start the ball dropping until obstacle hit
1030 GOSUB
1040 WHILE
1050 SPRITE
1060 WEND
1070 IF
1080 IF
1100 REM drop the ball into a hole
1101 REM *************************
1110 FOR
1120 GOSUB
1125 VARNAME
1130 IF
1135 SPRITE
1140 VARNAME
1150 NEXT
1160 RETURN
1800 REM hit a wall so reverse direction
1801 REM *******************************
1810 VARNAME
1820 IF
1830 RETURN
1900 REM Put sprite upright
1901 REM ******************
1910 SPRITE
1920 RETURN
20 REM by Phil Lawson for Atari ST User (c)1990
30 REM ========================================
40 MODE
50 RESERVE
500 REM initialise variables
501 REM ********************
510 VARNAME
520 VARNAME
525 VARNAME
530 DIM
590 RETURN
60 SCREEN COPY
65 SCREEN COPY
70 GOSUB
7000 REM drop ball
7001 REM *********
7010 IF
7020 IF
7030 RETURN
75 WHILE
7500 REM ball has hit a deflector
7501 REM ************************
7510 IF
7520 IF
7530 IF
7540 WAIT VBL
7590 RETURN
80 GOSUB
8000 REM put the ball on the screen and let the player position it
8001 REM *********************************************************
8010 CLEAR KEY
8020 REM left=75, right=77
8030 VARNAME
8035 IF
8040 VARNAME
8050 IF
8060 IF
8070 IF
8080 ANIM
8090 NEXT
8100 CLEAR KEY
90 WEND