Skip to content

Teleporter size specification is an abomination #80

@macsforme

Description

@macsforme

In the BZW file format generally, the size parameter is a bit inconsistent, handling the lateral (X and Y) sizes as distances from the center of the object (so the lateral size is double the actual size specified), but handling the vertical (Z) size as the distance from the bottom to the top (the full object height).

However, the teleporter size parameter is even more wonky. While the height and thickness seems to somewhat follow the above paradigm, the teleporter width appears to equal the specified parameter width plus twice the border width, and then the borders are additionally added to each side. So for example, for a teleporter of width 5 and border 5, the actual width including the border is 5 * 2 (the object width) + 5 * 2 (the superfluous border width) + 5 * 2 (the actual borders) = 30. There might just be something in the calculation that adds the border width in an extra place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions