Created
May 19, 2019 07:13
-
-
Save tomaes/e2de81ed13f868c96fc4262151e0a948 to your computer and use it in GitHub Desktop.
Original in IchigoJam BASIC by @fu-sen: https://gist.github.com/fu-sen/69452ec698b16b4f3059af673aa52dcf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 REM フワフワ GW-BASIC port /w sound | |
11 CLS: RANDOMIZE TIMER | |
12 XM=80: YM=24: X=XM/2: Y=1: OC=239: L=30 | |
14 B=INT(RND*(XM-L*2))+L: SOUND 200,.5 | |
15 UP=0: L=30-S/10: IF L<1 THEN L=1 | |
16 LOCATE YM,B: PRINT CHR$(OC) | |
17 A$=INKEY$: X=X+(A$="a")-(A$="s") | |
18 IF SCREEN(Y+1,X)=OC THEN Y=Y+1: SOUND 800,1 | |
19 IF SCREEN(Y,X)=OC THEN GOSUB 40 ELSE Y=Y+1 | |
20 IF X<1 OR X>XM OR Y<1 OR Y>YM THEN 30 | |
22 LOCATE Y,X: PRINT CHR$(1+UP);: S=S+1 | |
24 T=TIMER: WHILE TIMER < T+.2: WEND | |
26 LOCATE Y,X: PRINT CHR$(249): GOTO 14 | |
30 LOCATE YM,1: PRINT "SCORE:";S: BEEP: END | |
40 Y=Y-1: UP=1: SOUND 600-Y*20,1: RETURN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I moved the original program to the GitHub Project:
https://github.com/fu-sen/bas.15j.run/blob/main/fuwafuwa.bas
This was originally posted on this page. (Japanese) I have added this Gist 💻 :
https://15jamrecipe.jimdofree.com/basic/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0/%E3%83%95%E3%83%AF%E3%83%95%E3%83%AF/