Skip to content

Commit

Permalink
changed sizes a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominux committed May 31, 2023
1 parent a8420bb commit 47a2e42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</head>

<body>
<canvas id="canvas" width="328" height="794"></canvas>
<canvas id="canvas" width="328" height="740"></canvas>
</body>

</html>
4 changes: 2 additions & 2 deletions src/common/constants.rs
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ body {

.playground_header {
width: 100vw;
padding: 40px 0;
padding: 15px 0;
margin: 0;
text-align: center;
background-color: white;
Expand Down

0 comments on commit 47a2e42

Please sign in to comment.