Hi Kai,

Smile. Interesting enough you might recall Cara, Willem, and I were
discussing this at length almost a month back. There are different
ways of doing this. Which way you choose probably depends on how good
your math sskills are.

Most professional game developers use bounding boxes to mathematically
calculate when and where two objects meet in 3d space. This is
obviously more accurate, but requires some skill with trig and
geometry to pull off correctly.

Fortunately, there is a less complicated way that I use to draw 2d and
3d maps. I simply use a 2d or 3d array and fill it with predefined
objects like a wall, door, spikes, fire, etc and then save it to a map
file. This works quite whell for me, and the method I have chosen for
the G3D engine.

As for saving map files I'm not sure how you would do it with
something lilike BGT, but with G3D it is very straight foward and
easy. Essentially, what I did is created a global world object, which
contains the map array, and I fill it with objects like walls, doors,
the floor, ceiling, etc. I then serialize that world object, and write
it out to a *.map file. When I load a new level all the G3D engine
needs to do is load that *.map file into memory and we are off. Make
sense?

Cheers!


On 12/27/10, Kai <kaixi...@sbcglobal.net> wrote:
> Greetings list.
>
> I've a question for you game developers who've made games involving mapped
> out levels. the short of it: How do you do it? Is your map just an array of
> coordinates with conditional statements that place obstacles at certain
> points? Or, for games  that have levels stored in files, how does that work?
>
> I'll admit that in this area, I'm a complete newbie, and therefore don't
> really understand how to conceptualize it in my head.
>
> I'm trying to plan out a game, and the prospect of having to design a level
> map hurts my head.
>
> Kai
>
>
> ---
> Gamers mailing list __ Gamers@audyssey.org
> If you want to leave the list, send E-mail to
> gamers-unsubscr...@audyssey.org.
> You can make changes or update your subscription via the web, at
> http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
> All messages are archived and can be searched and read at
> http://www.mail-archive.com/gamers@audyssey.org.
> If you have any questions or concerns regarding the management of the list,
> please send E-mail to gamers-ow...@audyssey.org.
>

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gamers@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.

Reply via email to