XONIX
#6
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 + ...
Reply


Messages In This Thread
XONIX - by DANILIN - 06-04-2022, 04:35 PM
RE: XONIX - by triggered - 06-04-2022, 05:16 PM
RE: XONIX - by DANILIN - 06-04-2022, 05:33 PM
RE: XONIX - by madscijr - 06-04-2022, 05:57 PM
RE: XONIX - by DANILIN - 06-04-2022, 06:07 PM
RE: XONIX - by bplus - 06-04-2022, 07:04 PM
RE: XONIX - by vince - 06-06-2022, 11:41 PM
RE: XONIX - by DANILIN - 06-07-2022, 07:55 PM



Users browsing this thread: 3 Guest(s)