This commit is contained in:
2026-03-22 20:23:27 +01:00
parent fa4a2b9924
commit 0c0e7c41af
6 changed files with 16 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ namespace Game::Object {
&dst,
mTransform.rotation,
&center,
SDL_FLIP_NONE
mIsFlipped ? SDL_FLIP_HORIZONTAL : SDL_FLIP_NONE
);
} else {
// Tiled rendering - render the texture repeatedly to fill the area defined by the entity's transform
@@ -89,7 +89,7 @@ namespace Game::Object {
&dst,
mTransform.rotation,
nullptr, // No rotation center since each tile is rendered independently
SDL_FLIP_NONE
mIsFlipped ? SDL_FLIP_HORIZONTAL : SDL_FLIP_NONE
);
dst.y += dst.h; // Move down for the next tile in the column
}