delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/24/22:47:50

From: "Ethan Giordano" <lostreality AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: tile based CRPG map drawing problem
Date: Mon, 20 Oct 1997 22:03:12 -0400
Organization: Cybernex Inc.
Lines: 17
Message-ID: <62h2ea$jcg$1@news.cybernex.net>
NNTP-Posting-Host: 207.198.146.98
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

i'm using 64x64 tiles draw to form the base layer. this is relatively easy,
start top left and increase map array y as you go across, and reset y and
increment x to move down. now my problem. i'm implementing a 2nd layer and
the tiles range in size. they are marked to be draw from the top-left most
tile they will occupy. my problem is this. if that tile moves of the screen
the large tile is not draw although path should still be seen. however if i
try to implement drawing more than the viewable area and then clipping, i
run into the problem of whether or not a coordinate offscreen exists ( aka -
coords ) in which the map array returns a garbage result to what should be
draw. does anyone have any experience with this sort of thing??

any help would be greatly appreciated as i'm kinda stuck until i fix this
problem.

-Ethan


- Raw text -


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