use bevy::prelude::*; fn main() { App::build() .add_plugins(DefaultPlugins) .add_startup_system(setup.system()) .add_system(animate.system()) .run(); } fn setup(commands: &mut Commands, asset_server: Res) { commands // 2d camera .spawn(Camera2dBundle::default()) .spawn(Text2dBundle { text: Text::with_section( "This text is in the 2D scene.", TextStyle { font: asset_server.load("fonts/FiraSans-Bold.ttf"), font_size: 60.0, color: Color::WHITE, }, TextAlignment { vertical: VerticalAlign::Center, horizontal: HorizontalAlign::Center, }, ), ..Default::default() }); } fn animate(time: Res