Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Dec 6, 2023
1 parent 9e00562 commit 452f268
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ fn main() {
.insert_resource(Msaa::Off)
.insert_resource(AssetMetaCheck::Never)
.insert_resource(ClearColor(Color::rgb(0.4, 0.4, 0.4)))
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
title: "That's a LOT of sheep".to_string(), // ToDo
// Bind to canvas included in `index.html`
canvas: Some("#bevy".to_owned()),
// The canvas size is constrained in index.html and build/web/styles.css
fit_canvas_to_parent: true,
// Tells wasm not to override default event handling, like F5 and Ctrl+R
prevent_default_event_handling: false,
..default()
}),
..default()
}).set(
ImagePlugin::default_nearest(),
))
.add_plugins(
DefaultPlugins
.set(WindowPlugin {
primary_window: Some(Window {
title: "That's a LOT of sheep".to_string(), // ToDo
// Bind to canvas included in `index.html`
canvas: Some("#bevy".to_owned()),
// The canvas size is constrained in index.html and build/web/styles.css
fit_canvas_to_parent: true,
// Tells wasm not to override default event handling, like F5 and Ctrl+R
prevent_default_event_handling: false,
..default()
}),
..default()
})
.set(ImagePlugin::default_nearest()),
)
.insert_resource(DirectionalLightShadowMap { size: 4096 })
.add_plugins(GamePlugin)
.add_systems(Startup, set_window_icon)
Expand Down

0 comments on commit 452f268

Please sign in to comment.