home *** CD-ROM | disk | FTP | other *** search
- {
- | Gloop for NewsFlash
- | Original by Ed Ross
- | Converted by Chris Davis
- |
- | NewsFlash does not support arrays so this may prove rather tricky!
- | However, we can use the tag file list instead (max 256 entries)..
- |
- | This game is intended to illustrate the flexibility of NewsFlash
-
- REPORT "Gloop"
- STD CLL
- NL BFG 7
- PRINT "This game will clear any queued files" NL
- PRINT "Do you wish to continue? (y/N)" GETD option,"NY"
- IF option="N" THEN
- END
- ENDIF
- NL NL
- PRINT "Keys are:" NL
- PRINT "Left : Z" NL
- PRINT "Right : /" NL
- PRINT "Exit : ESCAPE" NL NL
- GOSUB anykey
- STD CLS
- CLEARTAGS
- objects%=10
- object%=1
- REPEAT
- RND=80
- c%=RND-1
- RND=DLINES
- r%=RND-1
- TAGFILE c% OR (r%*(2^8))
- object%=object%+1
- UNTIL object%>objects%
- gloop%=40
- stop%=FALSE
- score%=0
- REPEAT
- CLS
- object%=1
- REPEAT
- READTAG 1,objectdat%
- REMOVETAG 1
- c%=objectdat% AND 255
- r%=(objectdat%/(2^8))
- LOCATE c%,r%
- IF r%=DLINES-1 AND c%>=gloop% AND c%<gloop%+4 THEN
- score%=score%+1
- BEEP
- ENDIF
- }*{
- r%=r%+1
- IF r%>=DLINES THEN
- RND=80 c%=RND-1
- TAGFILE c%
- ELSE
- TAGFILE c% OR (r%*(2^8))
- ENDIF
- object%=object%+1
- UNTIL object%>objects%
- k%=1
- REPEAT
- INKEY k
- IF k<>"" THEN
- IF k="Z" gloop%=gloop%-1
- IF k="/" gloop%=gloop%+1
- IF k="" stop%=TRUE
- IF gloop%<0 gloop%=0
- IF gloop%>76 gloop%=76
- ENDIF
- k%=k%+1
- UNTIL k%>8 OR k=""
- LOCATE gloop%,DLINES-1
- BFG 1
- }===={
- BFG 7
- LOCATE 0,0
- BFG 2
- PRINT "Score : "+score%
- BFG 7
- WAIT
- UNTIL stop%
- STD CLS
- CLEARTAGS
- }
-