Skip to content

FF_HORIZONTALFLIP and mobj->mirrored (sprite enhancements)

Kays Ishaq requested to merge kays/SRB2:ff_horizontalflip into next

FF_HORIZONTALFLIP is a frame flag analogous to FF_VERTICALFLIP that flips the sprite horizontally:

srb20127

in combination with FF_VERTICALFLIP:

srb20129

mobj->mirrored inverts the angle used to calculate sprite rotation and flips the sprite accordingly. In effect, this allows asymmetric objects to be easily mirrored, creating left-handed Fang:

srb20126

FF_HORIZONTALFLIP, like rollangle, does not behave the same way on models as it does on sprites: it acts exactly like mobj->mirrored: flipping the model across the mobj's angle, rather than relative to the camera angle.

Edited by Kays Ishaq

Merge request reports