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

@@ -48,6 +48,7 @@ namespace Game::Object {
std::string mName;
std::shared_ptr<Game::Renderer::Texture> mTex;
Transform mTransform;
bool mIsFlipped = false; // Whether the texture should be rendered flipped horizontally or not
bool mIsActive;
int mZIndex = 0; // For rendering order; higher zIndex renders on top of lower zIndex
float mTiledScale = 1.f; // Only used if the texture is tiled, to determine how much to scale the texture when rendering (since the entire texture is rendered as a single tile, this is necessary to be able to have different sized tiles)