Re: Win32lib question

new topic     » goto parent     » topic index » view thread      » older message » newer message

--- "Gwen (Feta)" <mb11363 at CHELLO.BE> wrote:

> So I have again a 'little' question (nevermind if you're too busy of bored
> !) : I'm making a tiny roguelike game (in case you know, it's like Adom,
> Nethack, Angband, ...) and all the graphics are in fact ASCII char with
> colors. I begon it under Eu-Dos and I'm trying to adjust it to use win32lib
> ('cause all the advantages blink

Cool.  Post something ASAP (DOS, Win, whatever)!

> I use setTextColor(), setPenPosition() and wPuts() for each char, but
> unfortunately it's very very slow (in a 640*480 window with a PII 350 : +-
> 1 frame/sec. gloups !), is it in your plan to improve that, or...heu...do
> you see another way to quicly print char with switching colors to the
> screen ?
> thanks in advance !

OK, it looks like you're probably just printing to a window directly, right?
If so, you might look into using a pixmap, and blitting that do the screen.  I
know, this kind of takes away from the simplicity you'd be using in DOS, but,
as I'm sure Jiri would be happy to point out, that's what you get for moving to
windows.

It's not that bad, really, and you could probably keep much of the same code,
and add an onPaint event that blits the pixmap to the window.

Seriously, though, I'd be very interested in seeing your Rogue/Nethack clone.
I've often thought about doing something like that myself.



=====
Matt Lewis
http://www.realftp.com/matthewlewis

__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu