From 47a2e429497290dd6342064ff975220a1484f12b Mon Sep 17 00:00:00 2001 From: Dominux Date: Wed, 31 May 2023 13:38:49 +0300 Subject: [PATCH] changed sizes a bit --- index.html | 2 +- src/common/constants.rs | 4 ++-- styles.css | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 3cdd143..220ec0d 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + diff --git a/src/common/constants.rs b/src/common/constants.rs index 9c946c6..d246f61 100644 --- a/src/common/constants.rs +++ b/src/common/constants.rs @@ -1,11 +1,11 @@ pub const SELECTION_MAX: usize = 3; -pub const MAX_TILES: usize = 14; +pub const MAX_TILES: usize = 13; pub const TILE_SIZE: u16 = 50; pub const TILE_HALF_SIZE: f64 = (TILE_SIZE / 2) as f64; pub const TILE_GAP: u16 = 4; pub const TILE_SELECTION_BORDER: f64 = 3.0; pub const TILE_SIZE_N_GAP: u16 = TILE_SIZE + TILE_GAP; -pub const MOVE_SIZE: f64 = 0.5; +pub const MOVE_SIZE: f64 = 0.2; pub const TILE_PULL_SPEED: f64 = 8.0; pub const TILE_SIZE_IN_MOVES: u16 = (TILE_SIZE_N_GAP as f64 / MOVE_SIZE) as u16 - 2; // I genuinely have no idea why but this it works much smoother pub const FONT: &str = "28px serif"; diff --git a/styles.css b/styles.css index 60dd661..5aaa270 100644 --- a/styles.css +++ b/styles.css @@ -12,7 +12,7 @@ body { .playground_header { width: 100vw; - padding: 40px 0; + padding: 15px 0; margin: 0; text-align: center; background-color: white;