cefn / lauf

Monorepo for lauf packages.
MIT License
5 stars 0 forks source link

Scale to fit within viewport. Fix H1 margin bug. #125

Closed cefn closed 3 years ago

cefn commented 3 years ago

This reduces the size of the snake arena by half (in integer terms) and then scales down all the image elements also by half, so that the whole arena can fit within a typical viewport.

It also fixes an issue in which the H1 was introducing a margin forcing the yellow arena boundary to be offset relative to the snake.