fit to original aspect ratio

This commit is contained in:
2025-03-19 21:13:26 +01:00
parent 3f4ffeb489
commit e82e7e1ea6
2 changed files with 9 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
.spawn(Node { .spawn(Node {
position_type: PositionType::Absolute, position_type: PositionType::Absolute,
bottom: Val::Px(20.0), bottom: Val::Px(20.0),
right: Val::Px(100.0), right: Val::Px(20.0),
height: Val::Px(74.0), height: Val::Px(74.0),
..default() ..default()
}) })

View File

@@ -53,7 +53,14 @@ fn main() {
cam_follow: true, cam_follow: true,
}); });
app.add_plugins(DefaultPlugins); app.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
title: "HEDZ reloaded".into(),
resolution: (1024., 768.).into(),
..default()
}),
..default()
}));
// app.add_plugins(bevy::pbr::wireframe::WireframePlugin) // app.add_plugins(bevy::pbr::wireframe::WireframePlugin)
// .insert_resource(bevy::pbr::wireframe::WireframeConfig { // .insert_resource(bevy::pbr::wireframe::WireframeConfig {