I am using ggez rust crate, trying to develop 2d game. Currently I have a problem, where I want to flip image over x axes. So for example if character is looking in right direction, it would look left after transformation. Could not find anything useful in documentation. As I see DrawParam struct does not support this. Is there any way to achieve this?
Cannot flip image over x axes
172 Views Asked by Sharmiko At
1
The
Imagestruct has a methoddrawin where you can pass someDrawParams.DrawParamscan setscaledortransformedwhich you could use for that.You would just need to scale by a negative factor, something like: