Advertisement
LBASIC

5LEAF.BAS

Jun 5th, 2023
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 1.07 KB | Source Code | 0 0
  1. '   From: Alex Wellerstein        Conference: FidoQBasic   (139)
  2. '   Date: 05-21-96 23:12             Subject: Pretty subliminal...
  3. '   this is peerrrdy!
  4. '   5BOUNCE.BAS - Five Leaf Psychedelic Bounce
  5. '   by General Electrik
  6. DEFINT A-Z
  7. SCREEN 13: CLS
  8. pause% = 2    'speed, lower = faster, higher = slower
  9. changes% = -1   'size changing, -1 = on, 0 = off
  10. s! = 1          'default size
  11. x = 0: y = 0: c = 31: xx% = 1: yy% = 1
  12. DO
  13.    c = c + 1: IF x < 1 THEN xx% = 1
  14.    IF x > 320 THEN xx% = -1
  15.    IF y < 1 THEN yy% = 1
  16.    IF y > 200 THEN yy% = -1
  17.    IF changes% THEN
  18.       IF s! <= 1.1 THEN ss% = 0
  19.       IF s! >= 16 THEN ss% = -1
  20.       IF ss% THEN s! = s! - .1 ELSE s! = s! + .1
  21.    END IF: x = x + xx%: y = y + yy%
  22.    IF c = 104 THEN c = 32
  23.    FOR i = 1 TO pause%: WAIT &H3DA, 8: WAIT &H3DA, 8, 8: NEXT
  24.    DRAW "BM" + STR$(x) + "," + STR$(y): DRAW "C2"
  25.    DRAW "S" + STR$(INT(s!))
  26.    DRAW "nu50ne30nh30nr40nl40ng10nf10nd20"
  27.    DRAW "C" + STR$(c): DRAW "S" + STR$(INT(s!))
  28.    DRAW "nu50ne30nh30nr40nl40ng10nf10nd20"
  29. LOOP WHILE INKEY$ = ""
  30. END
  31. '   dig that people! wow!
Tags: qbasic'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement