Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0306.ZIP
Filename : FALLGUY.PRG

 
Output of file : FALLGUY.PRG contained in archive : NN0306.ZIP
* Program: Fallguy.prg
* Author: Greg Lief
* Version: Clipper Summer '87
*
* Placed into the Public Domain.
*
* Syntax: Fallguy (, , , [])
*
FUNCTION Fallguy
PARAMETERS mrow, mcol, msg, delay
IF PCOUNT() > 2 && First 3 parameters MUST be passed!
PRIVATE trow, tcol, save_it, hold_on
FOR tcol = mcol TO mcol + LEN(msg) - 1
IF SUBSTR(msg, tcol - mcol + 1, 1) != CHR(32)
FOR trow = 0 TO mrow
* Save screen coordinate about to be erased.
save_it = SAVESCREEN(trow, tcol, trow, tcol)
* Draw falling letter at that location.
@ trow, tcol SAY SUBSTR(msg, tcol - mcol + 1, 1)
IF PCOUNT() < 4 && Default: use sound
IF trow % 3 = 0 && only at every 3rd row.
TONE(6000 - trow * 125, 1)
ENDIF
ELSE
FOR hold_on = 1 TO delay
NEXT
ENDIF
IF trow < mrow
* Restore affected portion of screen.
RESTSCREEN(trow, tcol, trow, tcol, save_it)
ENDIF
NEXT
ELSE && No point in drawing a falling space.
@ mrow, tcol SAY CHR(32)
ENDIF
NEXT
ENDIF
RETURN(0)

* EOF: Fallguy.prg


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NN0306.ZIP
Filename : FALLGUY.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/