#Terminal resolution
12 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I m planning to have screens that contains a map for made in ASCII characters for example.
The best solution is maybe to have a defined resolution ?
Because old school adventure game was played on specific screen resolution and they were designed for a defined resolution ?
Maybe reach out to the people in #graphics-gamedev ?
@jolly vine if we're talking about POSIX-compliant environments (mostly unices) you will likely need some library to abstract this complexity for you, you likely want to use ncurses for that... I have no gaming knowledge, but from what I can understand from your requirements, things like handling user resizing could be achieved through that. I'm just not sure how you plan on adapting the ASCII-art size, if you would reduce it or crop it according to the screen size, but in any way you choose to do you might achieve that with such libraries. Terminal control is a complex task, with a lot of variation according to terminal emulation type, so this kind of library is sort of a "must" if you want any portability and if you don't wanna have an exhaustive task implementing terminal controls...
Of course, you can work with a defined resolution, but in text mode with different hardware, video modes, operating systems, etc, it might be quite a restriction as well... I don't know the range of your project to understand it properly, maybe you could provide more details?
I'd definitely start out with using a fixed resolution, so you don't need to use a library and can focus on your actual game more quickly than if you had to learn a library like ncurses first
But it depends on how many fixed-resolution terminal games you've made before. If you're a beginner I'd definitely recommend learning the basics by writing everything yourself.
Also, I recommend just keeping everything black-and-white, rather than dealing with the complexity for a beginner that is coloring text in the terminal
But ncurses, while you'll need to learn, will make your life tremendously easier and would avoid putting a lot of burden in the user... I'm not sure it's worth the effort to handle terminal stuff instead of focusing on the project itself (the game), unless you want to study how terminals work
If you want inspiration of the beautiful stuff you can draw in a terminal with text alone, look up "ascii art". This website has a great collection of them:
https://www.asciiart.eu/
A large collection of ASCII art drawings and other related ASCII art pictures.
Yeah, it all depends on why they're doing this project, and what experience they already have 👍