well, it better than nothing )
I try to make a special level (i.e. accessed by red stairs) with some properties (AoD effect for instance) that I need. But totally random as ordinary random level.
First semi-successful attempt was
Create = function ()
DoomRL.OnGenerate()
...
well, I want not fully random level... maze looks more interesting. Thanks for hints, I write the next:
Create = function ()
generator.reset()
generator.run( generators.gen_maze )
...
and it works well. But... in both cases (first and last) I get a strange situation - TWO players on map! One is controllable and the second just standing somewhere. But it is a full clone, with same health, same equipment. And if I shoot him, then hurt myself. Well, it's funny but how make a proper 1-player random level? from level create proc.
Added:
understand. I need a not "all-inclusive" function for make layout but not place beings, items and player. Then spawn enemies, set player coordinates, set stairs, add items. All as separate calls. And use level.player for initial positioning