fix: center sprite
This commit is contained in:
parent
bf85f90837
commit
566e9175c3
|
@ -26,6 +26,7 @@ export default function Sprite({entity}) {
|
|||
}
|
||||
return (
|
||||
<PixiSprite
|
||||
anchor={0.5}
|
||||
texture={texture}
|
||||
x={Math.round(entity.Position.x)}
|
||||
y={Math.round(entity.Position.y)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user