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.

_______________________________________________
Enigma-devel mailing list
Enigma-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/enigma-devel

Reply via email to