Skip to content

Commit

Permalink
Ensure that growth amount is shown above diplopod
Browse files Browse the repository at this point in the history
  • Loading branch information
tehlers committed Nov 18, 2023
1 parent 9cadce6 commit 67aa362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/systems/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ pub fn show_message(mut commands: Commands, mut show_message_reader: EventReader
.spawn(Text2dBundle {
text: Text::from_section(&show_message.text, text_style)
.with_alignment(TextAlignment::Center),
// ensure that the text is drawn above the diplopod
transform: Transform::from_translation(Vec3::Z),
..default()
})
.insert(show_message.position)
Expand Down

0 comments on commit 67aa362

Please sign in to comment.