darkf / darkfo

DarkFO, a post-nuclear RPG remake (of Fallout 2)
Apache License 2.0
135 stars 12 forks source link

Implement roof hiding when the player enters a building #119

Closed darkf closed 6 years ago

darkf commented 6 years ago

In FO2, when you enter a building (with a roof over the player), that entire roof hides. Whether they use floodfill for this or not is unclear, but probably irrelevant -- it acts like it.

As a simple thing we could just hide all roofs when the player walks underneath one -- this is not only much faster and less bookkeeping but we don't have to find that old recursive floodfill implementation I wrote 6 years ago!

darkf commented 6 years ago

Did the simple variant (hide all roof tiles when under a roof) in 4abe8aeb421c6cbd99ed4ded98efd28800992a13.