PuzzleScript icon indicating copy to clipboard operation
PuzzleScript copied to clipboard

Title screen author overwrites title if title is 3 lines or over

Open david-pfx opened this issue 1 year ago • 4 comments

To reproduce:

title Simple Block Pushing Game title Simple Block Pushing Game title Simple Block Pushing Gametitle Simple Block Pushing Gametitle Simple Block Pushing Gametitle Simple Block Pushing Game
author David Skinner author David Skinner author David Skinner author David Skinner author David Skinner author David Skinner author David Skinner author David Skinner author David Skinner
homepage www.puzzlescript.net

david-pfx avatar Feb 23 '24 05:02 david-pfx

There are warning messages generated for your example example saying that both the title and author name have been truncated. What behaviour do you expect?

increpare avatar Feb 23 '24 09:02 increpare

For this example I would expect to see 3 lines of title, 3 lines of author, then the continue/new game prompt.

david-pfx avatar Feb 23 '24 09:02 david-pfx

I think there are three levels of possible actions:

First level: There is a slightly buggy behaviour in that the message that says

line 1 : Game title is too long to fit on screen, truncating to three lines.

really should be issuing a warning after two lines.

Second level: fiddling around with the effective five lines of current space to fit in both author and title (moving the author down to accommodate more lines if needed, to a maximum of four lines for title + one for authoer)

Third level: Dynamically adjusting the resolution to fit all given text might be the more graceful behaviour. I'm slightly wary about this - I don't want to go out of my way to enable people to give their games extravagantly long names.

Not closing, but low priority. People know what they are doing when they give their games long titles, and they can immediately see the effect of doing so.

increpare avatar Feb 25 '24 12:02 increpare

I agree. I think I would just reduce the 3 and 5 to 2 and 4.

BTW I found this mostly because PS+ has a much worse version when mouse is active: hover triggers multiple warnings. That one is much harder to fix. Triggering compile errors in the engine is not really a great idea.

david-pfx avatar Feb 25 '24 13:02 david-pfx