Mail Archives: djgpp/1997/11/19/14:04:13
From: | Ville Lundberg <vlundber AT cc DOT hut DOT fi>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Scrolling+sprites
|
Date: | Wed, 19 Nov 1997 15:48:06 +0200
|
Organization: | Helsinki University of Technology
|
Lines: | 28
|
Distribution: | inet
|
Message-ID: | <3472EE16.41C6@cc.hut.fi>
|
NNTP-Posting-Host: | beta.hut.fi
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi!
When I found DJGPP and Allegro, I thought that NOW is the time to move
on to C from QBasic, so I'm quite new at this. But now I have a really
basic problem I just can't find an answer to anywhere else, so now I try
here:
In my game, the playground have to scroll while ca 15 sprites moves
around it. But when I do this, by mixing double buffering and Allegros
scroll_screen, the sprites flicker; they create "ghost" images, when
running across the scrolling screen. It'looks terrible. My game uses
ModeX and I use the following logic:
move sprites co-ordinates;
scroll_screen;
blit(background to buffer);
blit(sprites to buffer);
blit(buffer to screen);
This is how someone told me how to do it, but it still doesn't work.
I would be really glad if someone could help me, because the game is
almost ready otherwise.
Thanks,
Ville Lundberg
=-----=
Ville Lundberg @ Helsinki University of Technology, Department of
Materials Science and Rock Engineering.
vlundber AT cc DOT hut DOT fi www.hut.fi/~vlundber
- Raw text -