diff --git a/schafkopf-logic/index.html b/schafkopf-logic/index.html
index c22e723..78dbf9d 100644
--- a/schafkopf-logic/index.html
+++ b/schafkopf-logic/index.html
@@ -2,10 +2,32 @@
+
Schafkopf Logic
+
+
diff --git a/schafkopf-logic/src/main.rs b/schafkopf-logic/src/main.rs
index 5e2f86d..d9bdc98 100644
--- a/schafkopf-logic/src/main.rs
+++ b/schafkopf-logic/src/main.rs
@@ -2,6 +2,7 @@ use bevy::{
asset::{AssetMetaCheck, AssetPlugin, RenderAssetUsages},
prelude::*,
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
+ window::{WindowPlugin, Window},
};
use bevy::ecs::relationship::Relationship;
use schafkopf_logic::{
@@ -82,12 +83,20 @@ struct BaseCardSprite;
fn main() {
App::new()
.add_plugins(
- DefaultPlugins.set(
- AssetPlugin {
+ DefaultPlugins
+ .set(WindowPlugin {
+ primary_window: Some(Window {
+ fit_canvas_to_parent: true,
+ ..default()
+ }),
+ ..default()
+ })
+ .set(AssetPlugin {
meta_check: AssetMetaCheck::Never,
..default()
- }
- ).set(ImagePlugin::default_nearest()))
+ })
+ .set(ImagePlugin::default_nearest())
+ )
.add_systems(Startup, (setup_game, spawn_click_text))
// Spawn the player hand once the atlas image is fully loaded
.add_systems(Update, spawn_player_hand)