小编Pos*_*don的帖子

圆圈如何触及Qbasic中的一条线并结束该程序?

我试图在Qbasic中制作一个迷宫,但是当指针接触到迷宫线时,程序就没有结束.我希望当圆圈(指针)触及迷宫的两端时,程序应该结束.程序是这样的: -

cls
screen 12
DIM p AS STRING
DIM A1 AS STRING
15 print"What do you want to do?"
print"A:Draw AN IMAGE"," B:PLAY A MAZE GAME";
PRINT
PRINT"TYPE 'A' OR 'B'IN CAPITAL FORM"
GOTO 102
99 print "rules to play the maze game:"
print
print "1 use 'W' to move the ball foward"
print "2 use 'S' to move the ball backward"
print "3 use 'A' to move the ball leftward"
print "4 use 'D' to move the ball …
Run Code Online (Sandbox Code Playgroud)

qbasic

3
推荐指数
1
解决办法
583
查看次数

标签 统计

qbasic ×1