Skip to content

Conversation

@shanecelis
Copy link

@shanecelis shanecelis commented Jan 9, 2025

Added sprite_flip.rs and tilemap_flip.rs in examples as well. The sprite_flip appears to work well. The tilemap_flip seems to work for x-axis flip but not y-axis.

sprite flip for x-axis

I did not add any flip for text because I wasn't even sure what it might mean and it looked complicated.

Added sprite_flip.rs and tilemap_flip.rs in examples as well. The sprite_flip appears to work well. The tilemap_flip seems to work for x-axis flip but not y-axis.
@Seldom-SE
Copy link
Owner

Seldom-SE commented Jan 10, 2025

Nice, thank you. I will take a closer look at this soon.

I did not add any flip for text because I wasn't even sure what it might mean and it looked complicated.

Fair, yeah, it's kind of a mess of math

Copy link
Owner

@Seldom-SE Seldom-SE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! If you do these things and get CI to pass, I'll merge

}

pub(crate) type TileComponents = (&'static PxTile, Option<&'static PxFilter>);
pub(crate) type TileComponents = (&'static PxTile, Option<&'static PxFilter>, Option<&'static PxFlip>);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this non-optional and add PxFlip as a required component on PxTile

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do.

&'static PxCanvas,
Option<&'static PxAnimation>,
Option<&'static PxFilter>,
Option<&'static PxFlip>,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as earlier comment, but for PxSprite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants