--- a/src/assets.rs +++ b/src/assets.rs @@ -30,6 +30,6 @@ ))] #[asset(path = "explosion.png")] pub explosion: Handle, - #[asset(path = "joystix.otf")] + #[asset(path = "PressStart2P-Regular.ttf")] pub joystix: Handle, } --- a/src/systems/game_over.rs +++ b/src/systems/game_over.rs @@ -41,7 +41,7 @@ parent.spawn(TextBundle::from_section( "Game over!", TextStyle { - font_size: 40.0, + font_size: 26.0, color: foreground_color(), font: assets.joystix.clone(), ..Default::default() @@ -50,7 +50,7 @@ parent.spawn(TextBundle::from_section( format!("Your score: {}", score.get()), TextStyle { - font_size: 40.0, + font_size: 26.0, color: foreground_color(), font: assets.joystix.clone(), ..Default::default() @@ -77,7 +77,7 @@ parent.spawn(TextBundle::from_section( "Exit", TextStyle { - font_size: 40.0, + font_size: 32.0, color: background_color(), font: assets.joystix.clone(), ..Default::default() --- a/src/systems/title_screen.rs +++ b/src/systems/title_screen.rs @@ -80,7 +80,7 @@ parent.spawn(TextBundle::from_section( "Play", TextStyle { - font_size: 40.0, + font_size: 32.0, color: background_color(), font: assets.joystix.clone(), ..Default::default() --- a/src/systems/ui.rs +++ b/src/systems/ui.rs @@ -65,7 +65,7 @@ TextBundle::from_section( "0", TextStyle { - font_size: 45., + font_size: 30., color: foreground_color(), font: assets.joystix.clone(), ..Default::default() @@ -73,7 +73,7 @@ ) .with_style(Style { position_type: bevy::ui::PositionType::Absolute, - bottom: Val::Px(-2.), + bottom: Val::Px(6.), left: Val::Px(120.), ..Default::default() }),