[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Enigma-devel] Enigma 1.10, place a single tile
From: |
Reece |
Subject: |
Re: [Enigma-devel] Enigma 1.10, place a single tile |
Date: |
Fri, 27 Jan 2012 15:48:35 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 |
I'm trying to create my level parser (exporter) for Enigma Game Level
Editor (Egle).
I need a good way of exporting my levels!
In Egle, I use 3 arrays to store the strings for the Floor tiles, Item
tiles, and Stone tiles.
For example a level 4 tiles wide and 4 tiles high could be represented by:
Floor Array{
{"fl_wood", "fl_lawn_a", "fl_lawn_a", "fl_wood"}
{"fl_lawn_a", "fl_water", "fl_water", "fl_lawn_a"}
{"fl_lawn_a", "fl_water", "fl_water", "fl_lawn_a"}
{"fl_wood", "fl_lawn_a", "fl_lawn_a", "fl_wood"}
}
Item Array{
{"", "it_spoon", "it_hammer", ""}
{"", "", "", ""}
{"", "", "", ""}
{"", "", "", ""}
}
Floor Array{
{"", "", "", ""}
{"", "", "", ""}
{"", "", "", ""}
{"st_greenbrown", "st_greenbrown", "st_greenbrown", "st_greenbrown"}
}
I'm not sure how I can output my level with the new 1.10 API.
I'm also not sure how to combine the floor, item, and stone tiles into 1
tile definition without using a super long tile definition string!?
If you have any suggestions that would be great!
Reece
On 1/27/2012 3:21 PM, Raoul wrote:
Is it possible then to create 3 different maps? One for Floors, one
for Items, and 1 for Stones?
It is possible with some advanced features of the API.
But you should not do this. (Only for very special reasons.)
Read refman chp. 12.4 and 13.