-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for square tiles and non-square-ratio text #178
Comments
The rot.js Display is supposed to represent a grid with rows and columns. It is not possible and not feasible to mix different character widths. I can highly recommend creating an independent rendering area for your text needs. It can be either a different ROT.Display instance, or simply a HTML Alternatively, you might want to try different monospace fonts to find some with more square-like aspect ratio. This is a good place to start: https://github.com/chrissimpkins/codeface |
I was thinking more along the lines of how it's done in cogmind: https://www.gridsagegames.com/cogmind/game/cogmind_labels_items.png a good article on how this was achieved: https://www.gridsagegames.com/blog/2014/09/fonts-in-roguelikes/ I think maybe a couple challenges here:
|
Also, there remains an open question of a text-based vs. image-based Display. You mentioned the |
When rendering maps,
forceSquareRatio: true
is perfect, but when rendering display text, the square ratio makes it difficult to read:when rendering text, it would be great to have an additional flag or option to allow the aspect ratio to be non-square.
The text was updated successfully, but these errors were encountered: