Advertisement
Sim_Piko

START.BAS

Feb 11th, 2023 (edited)
11,519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 2.18 KB | None | 0 0
  1. START.BAS from THE FORGOTTEN ISLAND
  2.  
  3. 1 DIM MUS$(1)
  4. 10 DIM F$(20),C$(20)
  5. 15 LET N0=0
  6. 16 IF PEEK(1792)=1 THEN GOTO 3000
  7. 20 GRAPHICS 8:SETCOLOR 2,0,0:SETCOLOR 4,7,5
  8. 30 LET F$="D:ISLE.PIC"
  9. 40 GOSUB 20000
  10. 50 CLOSE #1:PRINT "}        - THE FORGOTTEN ISLAND -"
  11. 55 PRINT
  12. 60 PRINT "    WRITTEN BY MARC RUSSELL BENIOFF"
  13. 75 POKE 752,1
  14. 80 PRINT "    COPYRIGHT CRYSTAL COMPUTER 1981";
  15. 100 READ A
  16. 101 IF A=-1 THEN GOTO 9999
  17. 109 IF A=0 THEN 115
  18. 110 READ B:FOR C=14 TO 0 STEP -2:SOUND 0,A,10,C
  19. 111 SOUND 1,A+1,10,C:NEXT C
  20. 114 GOTO 120
  21. 115 SOUND 0,0,0,0:READ B
  22. 116 SOUND 1,0,0,0
  23. 117 SOUND 2,0,0,0
  24. 118 SOUND 3,0,0,0
  25. 120 FOR TIME=1 TO B/2:NEXT TIME
  26. 121 SOUND 0,0,0,0
  27. 122 SOUND 1,0,0,0
  28. 123 SOUND 2,0,0,0
  29. 140 GOTO 100
  30. 1000 DATA 162,30,144,60,121,60,91,090,144,30,162,60,121,60,096,90,121,30,128,45,144,15,128,30
  31. 1020 DATA 121,30,108,45,108,15,91,30,91,030,96,120,121,90,162,30,144,60,121,60,91,90
  32. 1030 DATA 144,30,162,60,121,60,096,90,121,30,128,90,121,30,096,30,108,60,128,030,121,240,-1
  33. 3000 REM FINISH
  34. 3010 GRAPHICS 8:SETCOLOR 2,0,0:SETCOLOR 4,7,5
  35. 3020 LET F$="D:ISLE2.PIC"
  36. 3030 GOSUB 20000
  37. 3035 POKE 752,1
  38. 3036 PRINT :PRINT "  -- WELCOME BACK TO SAN FRANCISCO --"
  39. 3040 GOTO 100
  40. 3050 POKE 752,1
  41. 4000 REM
  42. 4060 GRAPHICS 0
  43. 4070 SETCOLOR 2,0,1
  44. 4080 PRINT "             * FINAL SCORE *"
  45. 4090 OPEN #1,4,0,"D:PASS":INPUT #1,GD:INPUT #1,EX:CLOSE #1:LET SCORE=EX+(GD*5)
  46. 4099 POKE 752,1
  47. 4100 PRINT :PRINT
  48. 4101 PRINT "YOUR SCORE IS ";SCORE
  49. 4102 GOTO 4102
  50. 4106 PRINT "you will win a $250 cash prize.":PRINT
  51. 4107 GOTO 4107
  52. 9999 SOUND 0,0,0,0:SOUND 1,0,0,0:SOUND 2,0,0,0:SOUND 3,0,0,0
  53. 10000 IF PEEK(1792)=1 THEN 4000
  54. 10001 PRINT "}IS THIS A:"
  55. 10010 PRINT "           1)NEW GAME"
  56. 10020 PRINT "           2)OLD GAME"
  57. 10030 OPEN #1,4,0,"K:"
  58. 10040 GET #1,K
  59. 10050 IF K=49 THEN CLOSE #1:SETCOLOR 4,0,0:RUN "D:ISLE"
  60. 10055 IF K=50 THEN GOTO 10070
  61. 10060 GOTO 50
  62. 10070 POKE 1791,1
  63. 10100 CLOSE #1
  64. 10105 TRAP 10000
  65. 10110 SETCOLOR 4,0,0:RUN "D:ISLE"
  66. 20000 C$="h˘LVä":OPEN #1,4,N0,F$:GET #1,A:GET #1,A:GET #1,A:GET #1,B:GET #1,C:GET #1,DE:POKE 850,7
  67. 20010 LOW=B*256+A:HI=DE*256+C:BLEN=HI-LOW:F=INT(BLEN/256):E=BLEN-256*F:POKE 856,E:POKE 857,F:POKE 852,A:POKE 853,B
  68. 20020 B=USR(ADR(C$)):CLOSE #1:RETURN
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement