enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Enigma-devel] How to draw a CELLS map with levels???


From: Petr Machata
Subject: Re: [Enigma-devel] How to draw a CELLS map with levels???
Date: Wed, 22 Oct 2003 19:06:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312

Michi Hostettler wrote:
How can i draw a map(using ant.lua's CELLS) with different layers(one for
floors, one for actors, one for stones, one for items)???? can i use ralf's
MetaMap for this??? i need this for my level editor blackballed
(http://www.blackballed.uni.cc). please help me.

ant.lua supports this directly. You can have several cell tables - standard is the one named 'cells'. And several level maps - standard is the one named 'level'. If you use non-standard name, just write it to level generatin function, such as:

      create_world_by_map(floors, fcells)
      draw_map(0, 0, stones, scells)
      draw_map(0, 0, items,  icells)
      draw_map(0, 0, actors, acells)

Just advice - never use default parent when using layered maps. Upper layers would cover lower ones with default parent.

More info should be in enigma/doc/ant_lua.txt, chapter 3.2.


michi h.

Petr Machata







reply via email to

[Prev in Thread] Current Thread [Next in Thread]