Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
155
stars
22
forks
source link
Error in deciding to use horizontal or vertical flip ends up in using both #13
If an image is being converted which has a tile which is either the horizontal or vertical flip of a previous tile, the previous tile will be used but it will use both vertical and horizontal flipping, meaning it displays as if no flip has occured at all.
For example, consider the following 16 by 8 pixel image:
These two tiles could be encoded as the same tile, just with one flipped either horizontally or vertically.
Superfamiconv encodes the image as such:
The first tile is normal, but the second tile is both flipped horizontally and vertically. This means it looks the same as not flipped at all. In the above case the converter should pick either horizontal or vertical flip but should not pick both.
If an image is being converted which has a tile which is either the horizontal or vertical flip of a previous tile, the previous tile will be used but it will use both vertical and horizontal flipping, meaning it displays as if no flip has occured at all.
For example, consider the following 16 by 8 pixel image:
These two tiles could be encoded as the same tile, just with one flipped either horizontally or vertically. Superfamiconv encodes the image as such:
The first tile is normal, but the second tile is both flipped horizontally and vertically. This means it looks the same as not flipped at all. In the above case the converter should pick either horizontal or vertical flip but should not pick both.