From 41e5b5f9b87d8e7d0a35d4b324e9cdf73a8d46ff Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 21 May 2021 21:10:44 -0600 Subject: [PATCH] Rework mobile layout to be more compact, et al. - On small screens, the top two headers (with the pack + level names) are now removed; instead the pack and level name are shown when starting each level, and the buttons from those headers are moved into a pause menu. - The options, compat, and level browser dialogs were all reworked to fit better on narrow screens. - The level overlay has a more consistent layout and tries harder to not draw in the middle, where the player generally is (except that the mobile pause menu goes there, but oh well). - The score tally at the end of a level is now less of a small table and more of... more numbers, I guess? - Links to the music source and author now open in a new window to reduce risk of accidentally clicking them and losing your progress. - A few obituaries were shortened, and several more were added. - The game ending screen is now accessible on a touchscreen (oops). - The pause and rewind buttons visually indicate when you're in that mode, suggesting you can hit them again to switch to normal play. - Touch controls are now relative to the player and only apply within the game viewport. - Disabled buttons look a bit less janky. Still some work to do on this, but it's a pretty solid start. --- index.html | 28 ++- js/defs.js | 4 +- js/main-base.js | 9 +- js/main.js | 531 +++++++++++++++++++++++++----------------- js/renderer-canvas.js | 18 ++ style.css | 511 +++++++++++++++++++++++++++++++--------- 6 files changed, 760 insertions(+), 341 deletions(-) diff --git a/index.html b/index.html index 9009bae..0e680a6 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ Lexy's Labyrinth +