frnsys / highrise

building social dynamics simulator
5 stars 2 forks source link

add walls #9

Closed frnsys closed 7 years ago

frnsys commented 7 years ago

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 7 years ago

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

frnsys commented 7 years ago

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 7 years ago

this is starting to look like minesweeper