Archived from groups: rec.games.roguelike.development (
More info?)
vooood wrote:
> The Sheep wrote:
> > Dnia Fri, 06 May 2005 22:25:21 +0200,
> > vooood napisal(a):
> >
> >
> >>now that you mention this i did some research.. check this out:
>
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_functions.asp
> >
> >
> >>with this you don't even have to use curses or sdl (if you code for
> >>windows only as i am).. every needed function can be derived from
this..
> >>clear_screen, color_print.. anything you need if you feel like
making it..
> >
> >
> >>anybody can tell me about the *speed* of these functions?
> >
> >
> > I don't program for windows at all, but I've heard that windows
console
> > and text mode functions in the standard libraries tend to be
horribly
> > slow.
> >
>
> so you say that i stick to curses? i have linux and am thinking that
i
> _might_ make a multiplatform game..
The trouble with Curses is that it tends to just wrap around the
Windows Console layer. Said windows console layer has a reputation for
being slow.
I would recommend you rip out the relevant gfx* code from You Only Live
Once, and use that for SDL support. It gives you the clear_screen,
color_print, whatever, with support for both SDL & curses. This gives
you fast support on Windows & native terminal support on Linux.
Note that while SDL is supported on Linux, if one is doing text only
Curses is still better. It has the advantage that people can easily
play it through an ssh connection. You may be surprised how often
Linux users would use such a feature...
--
Jeff Lait
(POWDER: http://www.zincland.com/powder)