fix: keep font loaded

This commit is contained in:
Pascal Engélibert 2022-08-23 12:42:56 +02:00
commit d9232fd5f0
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
7 changed files with 25 additions and 25 deletions

View file

@ -33,6 +33,7 @@ fn main() {
.add_plugin(RapierDebugRenderPlugin::default())
.add_plugin(menu::MenuPlugin)
.add_plugin(game::GamePlugin)
.add_plugin(bevy_inspector_egui::WorldInspectorPlugin::new())
.add_startup_system(setup)
.run();
}
@ -42,7 +43,8 @@ fn setup(
mut dsp_manager: ResMut<DspManager>,
asset_server: Res<AssetServer>,
) {
let _font: Handle<Font> = asset_server.load("Cantarell-VF.otf");
let font: Handle<Font> = asset_server.load("UacariLegacy-Thin.ttf");
commands.insert_resource(font);
commands.spawn_bundle(Camera2dBundle {
camera_2d: Camera2d {