diff --git a/examples/game/alien_cake_addict.rs b/examples/game/alien_cake_addict.rs index 9468fd714ff17..34ec530dc5ce8 100644 --- a/examples/game/alien_cake_addict.rs +++ b/examples/game/alien_cake_addict.rs @@ -152,15 +152,15 @@ fn setup(commands: &mut Commands, asset_server: Res, mut game: ResM // scoreboard commands.spawn(TextBundle { - text: Text { - font: asset_server.load("fonts/FiraSans-Bold.ttf"), - value: "Score:".to_string(), - style: TextStyle { - color: Color::rgb(0.5, 0.5, 1.0), + text: Text::with_section( + "Score:", + TextStyle { + font: asset_server.load("fonts/FiraSans-Bold.ttf"), font_size: 40.0, - ..Default::default() + color: Color::rgb(0.5, 0.5, 1.0), }, - }, + Default::default(), + ), style: Style { position_type: PositionType::Absolute, position: Rect { @@ -338,7 +338,7 @@ fn rotate_bonus(game: Res, time: Res