simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Jul 31 22:49:10 BST 2023


TL;DR:
  56237fa Same Game: scale TILE_GAP with tilesize

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Ben Harris <bjh21 at bjh21.me.uk>
Date:           2023-07-31 22:49:10

commit 56237fa5fa0c2c56785f3667cb7d013dc9779352
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=56237fa5fa0c2c56785f3667cb7d013dc9779352;hp=29eaa8f55c7b9cc960afa4327a7ce977e6637e9c
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Mon Jul 31 22:39:33 2023 +0100

    Same Game: scale TILE_GAP with tilesize
    
    TILE_GAP represents the gap between the coloured parts of adjacent
    different-coloured tiles.  Rather than a fixed 2 pixels, it's now 1/16
    of the tilesize (rounded to nearest).
    
    This looks the same at the default tilesize of 32, but behaves better
    with larger or smaller tilesizes.  At tilesizes below 8, the gap
    disappears altogether, but that seems appropriate: at 7 pixels there's
    not much space for the inner and outer squares and the cursor, and those
    are all more important than the gap..

 samegame.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the tartarus-commits mailing list