Settlements
Last week's work was focussed on settlements, which are embedded locations in outdoors biomes, and can be the setting for several mission types (e.g. defense from ambush, or some night stealth mission to steal something, etc). Some related work to make that happen:
- Refactor of what's considered outdoors. Previously, it was per-zone (so, a subregion of a level). Now, it's per tile, depending on the zone the tile it's in, but also if it's in a sheltered room or not. So, in a settlement, a tile can be outside, can be inside a room without a roof, and can be inside a room with a roof. The inside/outside distinction is used for particle systems such as rain/snow, for light conditions, fog, etc
- Cutscene player. Added support of cutscenes loaded from file, that can do some pretty generic stuff, like pan/zoom to the center of the map. This is used in the video above.
- Cemetery prefab. This required fixing up the cemetery fence autotiles, and setting it up to be an "outdoors" room where the fence blocks movement but not visibility.
- Blacksmith prefab and equipment rack. Ok, it's a poor excuse of one, as I've just added a new object in there, which is the equipment rack, that can spawn weapons or armor.
- Bed prefab. I've added a bed sprite for some house prefabs (well only one variant of a house atm)
- Prefab rotations. Prefabs can specify if they support rotated/reflected versions of themselves, to create a bit more variety. With ASCII that's a no brainer, but rotations when using tiles can be problematic.
Next time: replacing the water in levels! Teaser shown in the video above.