Rotating filter

This commit is contained in:
Pascal Engélibert 2022-08-25 09:30:47 +02:00
commit 5ac4b4711c
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
6 changed files with 58 additions and 24 deletions

View file

@ -49,12 +49,12 @@ fn setup(mut commands: Commands, mut windows: ResMut<Windows>, asset_server: Res
.unwrap()
.set_title(String::from("Bevyjam"));
#[cfg(not(target_arch = "wasm32"))]
let font: Handle<Font> = asset_server.load("UacariLegacy-Thin.ttf");
#[cfg(target_arch = "wasm32")]
let font: Handle<Font> = asset_server.load("UacariLegacy-Thin.ttf");
commands.insert_resource(font);
let bevy_icon: Handle<Image> = asset_server.load("bevy.png");
commands.insert_resource(bevy_icon);
commands.spawn_bundle(Camera2dBundle::default());
commands.insert_resource(AmbientLight {
color: Color::WHITE,