'City Map Maker by SierraKen
'9-14-2020
'Each cell is 20 pixels x 20 pixels.
start:
x = 0: y = 0: x2 = 0: y2 = 0
'Start Location
startlocation:
stx = stx + 70
LINE (stx
, 750)-(stx
+ 20, 750), _RGB32(255, 255, 255) 'End Location
endlocation:
endx = endx + 70
LINE (endx
, 50)-(endx
+ 20, 50), _RGB32(255, 255, 255) 'Make Grid
start2:
t = 0: tt = 0
x = stx
y = 750
x2 = 0: y2 = 0
'Make Paths
direction:
t = t + 1
tt = tt + 1
tt = 0
x = x - 20
LINE (x
+ 20, y
)-(x
+ 20, y
- 20), _RGB32(255, 255, 255) x = x + 20
check:
t = t + 1
check2:
more:
thewall:
x2 = x2 + 10
y2 = y2 + 10
LINE (x2
, y2
)-(x2
, y2
- 20), _RGB32(255, 255, 255) x2 = x2 - 20
LINE (x2
+ 20, y2
)-(x2
+ 20, y2
- 20), _RGB32(255, 255, 255) x2 = x2 + 20
IF dir2
>= 40 AND dir2
<= 80 THEN LINE (x2
+ 20, y2
)-(x2
+ 20, y2
- 20), _RGB32(255, 255, 255): x2
= x2
+ 20:
GOSUB check2:
IF dir2
> 80 AND dir2
<= 90 THEN LINE (x2
, y2
- 20)-(x2
+ 20, y2
- 20), _RGB32(255, 255, 255): y2
= y2
- 20:
GOSUB check2:
again:
_TITLE "Press Space Bar for another one, P to Print, C to copy to Clipboard, or Esc to Quit."
printing: