fit to original aspect ratio
This commit is contained in:
@@ -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()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user