Ok, let's take a peak in the game loop below and modify it a bit for readability:
do
k = ucase$(inkey$)
if k="W"then
y = y - 2
elseif k= "S" then
y = y + 8
elseif k="A"then
x = x - 8
elseif k="D" then
x = x + 5
end if
circle (x,y),7,10
loop until k ="Q"
Your winning case (if x = 120 and y = 120 and then 45) does not actually happen inside the loop, but outside of it.
, do loop, "" true. :
do
'This code will execute
loop until k = "Q"
'This code will only execute after k=Q
do, .
, QBasic . , , , . , . , loop, do loop. , , do. if .
, , .
Edit: , . , Python codecademy, QBasic. QBasic , goto.