@START
ACLS:GCLS 15:CLEAR:H=8
BGMPLAY 26
C=12:S=4:X=16:Y=16
M$="バレンタイン↓??ゲ-ム↓":GOSUB @GPUT
C=1:S=2
M$="↓アナタノ ナマエ↓ (6モジマデ)↓?":GOSUB @GPUT
M$="":GOSUB @NAME:N$=M$
FOR I=1TO LEN(N$)
A=ASC(MID$(N$,I-1,1))
V=V+A/I:W=W+A/I/2
NEXT
FOR I=1TO 3
GOSUB @RND:A(I)=R+9
NEXT
A(0)=A(2)
BGMPLAY 12
@MAIN
GCLS 15
GOSUB @PRINT
FOR I=0 TO 1
B=BTRIG()
Z=(B==16)+(B==32)*2+(B==64)*3+(B==128)*4
I=Z
NEXT
IF Z==4THEN A(0)=A(2):BEEP 5:G=0
IF G THEN GOSUB @NO:GOTO @MAIN
GOSUB @RND
IF Z<4THEN U=R:GOSUB @RND:A(0)=A(0)-R-U:IF A(0)>0THEN A(Z)=A(Z)+R:BEEP 7
IF A(0)<1 THEN GOSUB @SICK
H=H+1
IF H<28THEN @MAIN
@GPUT
FOR I=0 TO LEN(M$)-1
A=ASC(MID$(M$,I,1))
IF A==31THEN X=0:Y=Y+S*8 ELSE GPUTCHR X,Y,"BGF",A,C,S:X=X+S*8
NEXT
RETURN
@NAME
C=13:X=16:P=0
K$=INKEY$()
K=KEYBOARD
B=BTRIG()
GFILL 16,128,255,143,15
GOSUB @GPUT
IF K==15 OR B==128 THEN P=M$!=""
IF (K==60 OR B==16)*(M$!="") THEN RETURN
M$=LEFT$(M$+K$,6*!P+(LEN(M$)-1)*P)
WAIT 1
GOTO @NAME