Changes:
- Once player sees a location, it stays permanently visible.
- Door construction revamped to included barricaded and broken doors.
- Single outside hatch on symmetry axis.
- Player always starts out floating toward the entrance hatch.
- Limit ship's spread away from symmetry axis.
The general algorithm for connecting the rooms is as follows:
- Come up with a set of all potential adjacencies (rooms sharing a wall)
- Connect all of the adjacent space rooms together (you can't see them in the final product)
- Connect the ship's rooms together with “original” doors. These may or may not be passable in the final level but represent how the ship was originally constructed. The ship's interior is minimally connected, plus about 50% of the remaining adjacencies.
- Doors between the inside and the enclosed outside areas are added. This is the same process as the previous step, but doing it afterward ensures that the ship's original layout would not have relied on going outside to traverse it.
- Create the door to surrounding outer space. It's on the symmetry axis at the moment.
- Choose from the set of “original” doors to construct a simply-connected maze through the rooms. This will be the expected traversal. These become regular doors. Note that this path may require passage through enclosed exterior areas.
- Compute each room's depth from the entrance hatch when traversing via the maze.
- Turn the remaining original doors into broken or barricaded doors: broken, if the traversal depth is the same on either side, and barricaded (so they can only be opened from the deeper side) otherwise.
A couple other things:
- The window size is expanded from 80x25 to 120x40. It really needs to be resizable but that's been a low priority.
- The number of rooms in the ship is greater: 10-100.
- If you just want to look at ship layouts, use the undocumented Ctrl-A hotkey to toggle visibility of everything.
No comments:
Post a Comment