From d63f835ebdab26b0a92cabe860c71d47b03156e8 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 27 Jun 2024 13:57:18 -0500 Subject: [PATCH] fix: z-sorting --- app/react-components/entities.jsx | 10 +++++++++- app/react-components/entity.jsx | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/react-components/entities.jsx b/app/react-components/entities.jsx index 1fc417f..d193383 100644 --- a/app/react-components/entities.jsx +++ b/app/react-components/entities.jsx @@ -1,3 +1,5 @@ +import {Container} from '@pixi/react'; + import Entity from './entity.jsx'; export default function Entities({entities}) { @@ -10,5 +12,11 @@ export default function Entities({entities}) { /> ); } - return <>{renderables}; + return ( + + {renderables} + + ); } \ No newline at end of file diff --git a/app/react-components/entity.jsx b/app/react-components/entity.jsx index e24c83e..ad3df2e 100644 --- a/app/react-components/entity.jsx +++ b/app/react-components/entity.jsx @@ -35,7 +35,9 @@ function Entities({entity}) { return false; } return ( - + {entity.Sprite && (