www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/19:47:05

Message-ID: <001101bdfe1e$750e7e40$446195cc@uic>
From: "Andrew Deren" <aderen AT interaccess DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Level-map problem
Date: Thu, 22 Oct 1998 19:45:38 -0500
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

I don't know if that's what you are asking for but I'll try
explaining:

You can have an array of those objects
OBJECT object[70];

and in your map you could store an index to that
array. Let's say your map is 200x200 then when
you have a value at 3,3  let's say 8 then it means
that at position map[3][3] there is object #8.

-----Original Message-----
From: Leif Svensson <leif DOT svensson AT home DOT se>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Thursday, October 22, 1998 5:46 PM
Subject: Level-map problem


>Hello!
>I´m writing a 2d game and I got a problem that I think that maybe someone
>out there can help me with.
>I´m having a problem with my map-system.
>It should read in which tile who is where (There are 70 of them (10*7) and
>then refer to a object to keep the map-files small. How do I do this?
>Do you got a better way to solve the whole map-file thing?
>I don´t want any graphics in the file, cause the file will be too big then.
>Hope you understand what I mean. If not, Tell me....
>
>Waiting for an answer from a kind soul....
>// Patrik , Sweden
>
>P.S: There´s over 450 tiles D.S
>
>
>


- Raw text -


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