delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/17/01:46:49

From: "Helix" <Talis AT Enix DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Sprite movement?
Date: 17 Feb 1998 03:10:59 GMT
Organization: Computers & More Inc.
Lines: 17
Message-ID: <01bd3b6d$c1521ce0$cc51dece@stachowiak>
References: <01bd3b2e$7c83f8c0$c151dece AT stachowiak> <UouA44e00iWV0_wMk0 AT andrew DOT cmu DOT edu>
NNTP-Posting-Host: port204.compmore.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


James W Sager Iii <sager+@andrew.cmu.edu> wrote in article
<UouA44e00iWV0_wMk0 AT andrew DOT cmu DOT edu>...
> If you want to refresh the background where the sprite once was, a good
> method for doing it is to pick up the background where the sprite is
> going to be in a bitmap the size of the sprite. When you go to move the
> sprite, put the bitmap you picked up earlier over the sprite, and then
> pick it up where the sprites gonna be before you draw the sprite, repeat
> as needed :)
> 
> 

Do you have any examples of some code in this respect? Is their a function
that copies from the screen into memory the terrain? can I edit this and
redraw it?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019