Mail Archives: djgpp/1998/10/22/19:47:05
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 -