06-04-2022, 07:04 PM
(This post was last modified: 06-04-2022, 09:37 PM by bplus.
Edit Reason: A little mod
)
Expanding on the subject of WTH?
Code: (Select All)
_Font 8
m = 3: n = 2
restart:
_Title Str$(m) + " x" + Str$(n): Cls
x = 1: y = 1: dx = 1: dy = 1: c = 0
move:
Locate y + 1, x + 1: Print Chr$(219);
If x + dx < 1 Or x + dx > m Then dx = -dx
x = x + dx
If y + dy < 1 Or y + dy > n Then dy = -dy
y = y + dy
Color 0, 15
Locate y + 1, x + 1: Print "X";
Color 15, 0
_Limit 30
c = c + 1
If c > (m * n) Then
toggle = 1 - toggle
If toggle Then n = n + 2 Else m = m + 2
_Delay 1
GoTo restart
Else
GoTo move
End If
b = b + ...