Advertisement
jargon

Roe 2 Splash

Oct 3rd, 2021
3,311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DEFSNG A-Z
  2. SUB splash (filename$, xx%, yy%, lineskip%, clearpage%, fg%, bg%)
  3.  xp% = xx%
  4.  yp% = yy%
  5.  
  6.  filemode% = FREEFILE
  7.  OPEN filename$ FOR INPUT AS #filemode%
  8.  DO WHILE NOT (EOF(filemode%))
  9.  
  10.   c$ = "%%"
  11.  
  12.   LINE INPUT #filemode%, R$
  13.   text yy%, xx%, R$, fg%
  14.  
  15.   IF "(" + MID$(R$, 2, 1) + ")" = MID$(R$, 1, 3) THEN
  16.    IF xm% = xx% + 1 AND ym% = yy% AND lb% <> 0 THEN
  17.     c$ = UCASE$(MID$(R$, 2, 1))
  18.    END IF
  19.   END IF
  20.  
  21.   xx% = xp%
  22.   yy% = yy% + lineskip%
  23.  
  24.   IF yy% > 25 THEN
  25.    DO WHILE c$ = "%%"
  26.     suspend TIMER, .2
  27.    LOOP
  28.    CLS
  29.    xx% = xp%
  30.    yy% = yp%
  31.   END IF
  32.  LOOP
  33.  IF clearpage% THEN
  34.   IF yy% > 2 THEN
  35.    c$ = "%%"
  36.    DO WHILE c$ = "%%"
  37.     suspend TIMER, .2
  38.    LOOP
  39.    CLS
  40.    xx% = xp%
  41.    yy% = yp%
  42.   END IF
  43.  END IF
  44.  CLOSE #filemode%
  45. END SUB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement