ASCII C++ Graphics Library

Started by
9 comments, last by lordseanington 7 years, 3 months ago
I was looking back the other day at my terrible old console based ASCII games and thought "Hey, I wouldn't mind making a good one now." Only issue is I want to avoid the console and there are no libraries that offer good text based libraries that I know of (although that would be great). If anyone has any suggestions I'd be glad to take them. I am a c++ programmer mainly so..
Thank you
Advertisement

I've never heard of lib that imitates the console.The easiest way would be using SDL glyph library.Pick a size , prerender all the glyphs you need and then implementing the rendering engine should be easy.

Here's a super easy option if you like Win32 GDI:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd144925(v=vs.85).aspx + OEM_FIXED_FONT
https://msdn.microsoft.com/en-us/library/windows/desktop/dd162957(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/dd145133(v=vs.85).aspx

I am absolutely in favor of you making a good one.

While that idea strikes my own mind from time to time, i remembered this sweet tool i once found while looking up stuff one of those times.

Check out REXpaint, and also this page has some links to libraries people use in combination with it.

http://www.gridsagegames.com/rexpaint/resources.html#Libraries
While much of this isn't truly console, but rather rendered ASCII, i think it might still be interesting.

I will probably end up using an SDL glyph library in the end as I really do not like the windows GDI. Thank you for your responces though. I will also look into Rex paint, although for this purpose I will probably make my own just for fun.
Thank you.

Are you already familiar with PDCurses? http://pdcurses.sourceforge.net/ That is probably the most commonly used for things like roguelikes. There appears to be a more win32 centric version as well: http://www.projectpluto.com/win32a.htm

Using SDL might be just as reasonable at this point, though.

Good luck!

Geoff

Yeah just make your own. It's essentially just a tilemap, with your tiles being each glyph. May want to take advantage of that to do Unicode as well (getting access to a lot more of useful glyphs in the process). The downside is that you'll have to provide the glyphs =P (I have a bunch from an old project, 16×16 per glyph though)

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

You have seen this already?

You might try libtcod.

I have taken to making my own using SDL actually, and I had good results and okay speed. I created a loadable/saveable image/color format.
I have also taken a look at pdcurses, and decided against it mainly because I really want resizable text. Also, I already have another library similar that I like use to make rougelikes.
Thank you for your help.

This topic is closed to new replies.

Advertisement