Skip to content
Snippets Groups Projects
Verified Commit f9675401 authored by Louis's avatar Louis :fire:
Browse files

Set resolution for cabinet

parent 133d52e4
No related branches found
No related tags found
No related merge requests found
Pipeline #127 failed with stages
in 7 minutes
assets/splash.png

131 B | W: | H:

assets/jamsplash.png

131 B | W: | H:

assets/splash.png
assets/jamsplash.png
assets/splash.png
assets/jamsplash.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -5,6 +5,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
no-aspect = []
[dependencies]
fastrand = "1.7"
anyhow = "1"
......
......@@ -12,7 +12,7 @@ pub fn start_preload_resources(mut commands: Commands) {
}
pub fn start_load_resources(mut loader: AssetTypeLoader) {
loader.load_images(&[("splash.png", "splash")]);
loader.load_images(&[("jamsplash.png", "splash")]);
loader.load_audio(&[("splash_sting.mp3", "splash_sting")]);
}
......
......@@ -10,7 +10,7 @@ mod setup {
}
pub fn initial_size() -> (f32, f32) {
(1280.0, 720.0)
(1024.0, 768.0)
}
}
......@@ -22,8 +22,8 @@ mod setup {
#[cfg(feature = "no_aspect")]
pub fn initial_size() -> (f32, f32) {
static default_width: f32 = 1280.0;
static default_height: f32 = 720.0;
static default_width: f32 = 1024.0;
static default_height: f32 = 768.0;
web_sys::window()
.and_then(|window: web_sys::Window| {
......@@ -45,9 +45,9 @@ mod setup {
#[cfg(not(feature = "no_aspect"))]
pub fn initial_size() -> (f32, f32) {
static default_width: f32 = 1280.0;
static default_height: f32 = 720.0;
static ratio: f32 = 1280.0 / 720.0;
static default_width: f32 = 1024.0;
static default_height: f32 = 768.0;
static ratio: f32 = 1024.0 / 768.0;
web_sys::window()
.and_then(|window: web_sys::Window| {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment