add walls
Closed this issue · 3 comments
frnsys commented
walls go between cells; they are essentially lines/edges.
what's the best way to define a wall?
one option: to define a wall you can specify a sequence of positions, e.g.: [0,0],[0,5],[5,10]
one coordinate must remain fixed between each position (i.e. no diagonal walls)
frnsys commented
although, it might be simplest to treat walls as objekts. I don't think the pathfinder can handle walls as specified above.
frnsys commented
ok so let's just have walls by an objekt variant. the layouts should be able to support them as the value 2
, e.g.:
2 2 2 2 2 2 2 2 2
2 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 2
2 1 1 1 1 1 1 1 2
2 2 2 2 2 2 2 2 2
frnsys commented
this is starting to look like minesweeper