Skip to content

[FEATURE] Add proper VFlip and HFlip modes for the tilemap drawing functions #461

@techmetx11

Description

@techmetx11

I have some tilemaps I wanted to draw sometimes normal or flipped on the VDP planes, but the problem is that SGDK's functions do not provide a way to actually draw the tilemaps all flipped vertically or horizontally.
I've tried VDP_setTileMapEx with TILE_ATTR_FULL macro (specifically the HFLIP and VFLIP parameters), but that just flips the individual tiles, and not the whole tilemap, making it look weird.

I'd like it if there was a seperate function in vdp_tile.c (like VDP_setTileMapFlipped) for drawing a tilemap either normal or flipped vertically or horizontally. I've tried modifying the VDP_setTileMapEx-related functions for this, but I only really got so far before I gave up on it

For now, I have to define a seperate TILEMAP definition for both the normal and flipped versions of the background I wanted to use, which uses up additional ROM space.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions