increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 160 forks source link

Enhancement request: display level number #408

Closed thSoft closed 3 years ago

thSoft commented 7 years ago

Sometimes, knowing the number of the current level can be useful to the player. It would be great if it was displayed either:

increpare commented 7 years ago

I agre it would be useful for some people. But where to display it?

On Thu, Sep 7, 2017 at 5:58 PM, Dénes Harmath notifications@github.com wrote:

Sometimes, knowing the number of the current level can be useful to the player. It would be great if it was displayed either:

  • always
  • if a flag (e.g. show_level_number) is present in the prelude

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/increpare/PuzzleScript/issues/408, or mute the thread https://github.com/notifications/unsubscribe-auth/AAca4JTZBTwgymBMu1InWxKamXfZdoL5ks5sgCCygaJpZM4PQHC6 .

thSoft commented 7 years ago

Maybe below the name of the game, center-aligned, with smaller font?

david-pfx commented 6 years ago

A level name that could be set in the script might be more useful. If set, it should display centered top (or bottom)

thSoft commented 6 years ago

Yes, I think that would be even better!

smattiso commented 6 years ago

Agreed, @david-pfx, level numbers can be arbitrary depending on whether you count message screens as levels, and there might be a use case either way. A string, meanwhile, can represent digits as well as text. The only difficulty then becomes; how do you show that text? What font do you use, and how do you align it? Some games already utilize the 5x5 pixel tiles to draw their own digits which they then place on the map on a new collision layer. This works when your levels are numbers, but becomes unwieldy if you want an entire font.

increpare commented 3 years ago

I think I'm ok with it as is for now (though I understand there are tradeoffs). Thanks for the feedback everyone.