Fullscreen

main
Elijah C. Voigt 1 year ago
parent 9d7fffdca0
commit 046169bca2

@ -41,7 +41,7 @@ rgba_background = "#000000AA"
delay = 0.1
text = [
"""
At the intersection of humanity's wildest imaginations and the infinite of the cosmos, the lines between possible and real fall apart like dissolving paper.
At the intersection of humanity's wildest imaginations and the infinity of the cosmos, the lines between possible and real fall apart like dissolving paper.
""",
"""
On Earth, a long tradition of combat and destruction between different groups has been upheld and respected; given a place of honor in the social mind. As spacetime stretches ever on, the rhyme of the universe plays out, and naturally includes such traditions.
@ -290,5 +290,8 @@ fast_light_speed = 1.0
# N: Some value in-between
undo_limit = -1
#############
### AI tweaks (mostly how long it waits to do stuff)
#############
[ai]
lag_secs = 2.0

@ -48,7 +48,7 @@ fn main() {
}),
..default()
}),
);
).add_systems(Update, handle_window.run_if(just_pressed(KeyCode::F11)));
app.add_plugins(credits::CreditsPlugin);
app.add_plugins(debug::DebugPlugin);
@ -185,3 +185,17 @@ where
{
Box::new(move |buttons: Res<ButtonInput<T>>| -> bool { buttons.pressed(button) })
}
fn handle_window(
mut query: Query<&mut Window>
) {
use bevy::window::WindowMode;
query.iter_mut().for_each(|mut window| {
window.mode = match window.mode {
WindowMode::BorderlessFullscreen => WindowMode::Windowed,
_ => WindowMode::BorderlessFullscreen,
}
})
}
Loading…
Cancel
Save