Skip to content
Snippets Groups Projects

FF_HORIZONTALFLIP and mobj->mirrored (sprite enhancements)

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading