fix: keep font loaded
This commit is contained in:
parent
214e55d7ac
commit
d9232fd5f0
7 changed files with 25 additions and 25 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue