A very modest change. I realized that text is automatically drawn with entities that have Text and GlobalTransform (and a few other components.
We already have a GlobalTransform from the SpriteBundle so I eventually realized the best way to keep things in sync would be to add the text component as a child of the Player entity.
A very modest change. I realized that text is automatically drawn with entities that have
Text
andGlobalTransform
(and a few other components.We already have a
GlobalTransform
from theSpriteBundle
so I eventually realized the best way to keep things in sync would be to add the text component as a child of thePlayer
entity.