frnsys/highrise

add walls

Closed this issue · 3 comments

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)

although, it might be simplest to treat walls as objekts. I don't think the pathfinder can handle walls as specified above.

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

this is starting to look like minesweeper