increpare / PuzzleScript

Open Source HTML5 Puzzle Game Engine
MIT License
903 stars 159 forks source link

Objects section allows multiple names #940

Closed david-pfx closed 2 years ago

david-pfx commented 2 years ago

Mad queens has this:

Alice Player @ 
Blue Brown White Yellow
.333.
.313.
02020
30203
.000.

Is this a substitute for a legend or something else?

increpare commented 2 years ago

Yes

https://www.puzzlescript.net/Documentation/objects.html

[...] you can specify a character that you can use to refer to the object when level editing just by putting it after its real name:

Player P
PINK WHITE BLACK    
.222.
.000.
22122
.222.
.2.2. 

Seems in practice to support lists of longer multi-character names also.

david-pfx commented 2 years ago

Then maybe it should be documented?

increpare commented 2 years ago

I think it's ok as is - not worth documenting fully and not worth the compiler being pernickety about.

david-pfx commented 2 years ago

Would only take a sentence to explain that after the object name you can have a list of either single characters to use in defining levels, or other names for the object.