tonarino / bomberman-of-the-hill

13 stars 5 forks source link

Render the player's name above their sprite #20

Closed bschwind closed 3 years ago

bschwind commented 3 years ago

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.

Screen Shot 2021-10-18 at 1 19 14 AM