You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB
Rust

use crate::prelude::*;
pub(crate) struct MenuPlugin;
impl Plugin for MenuPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Startup, init_menu);
}
}
fn init_menu(mut commands: Commands) {
commands.spawn(Camera3dBundle { ..default() });
commands
.spawn(NodeBundle {
style: Style {
max_width: Val::Percent(60.0),
max_height: Val::Percent(100.0),
..default()
},
..default()
})
.with_children(|parent| {
parent.spawn(TextBundle {
style: Style { ..default() },
text: Text {
justify: JustifyText::Center,
sections: vec![
TextSection::new(
"ACTS",
TextStyle {
font_size: 384.0,
color: Color::WHITE,
..default()
},
),
TextSection::new(
"of\n",
TextStyle {
font_size: 16.0,
color: Color::WHITE,
..default()
},
),
TextSection::new(
"GODS",
TextStyle {
font_size: 384.0,
color: Color::WHITE,
..default()
},
),
],
..default()
},
..default()
});
});
}