[tiled] JSPlugin
Porfirio
porfirio.ribeiro at sapo.pt
Thu Aug 21 13:04:43 PDT 2008
You can include it of course!! Can be GPL
Well... The diference of this plugin to json one is that the other one
generates json as it was xml, it ends up with a big file and hard to
parse in js
My plugin exports using Array notation as you could see on the example,
you can also compare both generated codes and understand.
Because i was doing once a small JS game engine and it could render the
maps, but the JSON exported was hard and heavy to parse and generate the map
Using the Array is quit simple, later i hope to post some example :)
Also i may do another plugin, for export JavaFX, but just on September,
i am busy this month
Bjørn Lindeijer escreveu:
> On 8/8/08, Porfirio <porfirio.ribeiro at sapo.pt> wrote:
>
>> Hi!
>>
>> I have been working on a JSPlugin for tiled.
>> Currently tiled suport JSON but the result is not realy easy to use.
>> So i decided to create my own plugin.
>> I based my work on the LUA plugin just modified the plugin to generate
>> JavaScript and to change the mmap output
>> now the output is array based
>> 5x5 ex
>>
>> data:[
>> [0,0,2,0,1],
>> [0,0,0,0,1],
>> [0,0,0,0,1],
>> [0,0,0,0,1],
>> [0,0,0,0,1]
>> ]
>>
>> Its not 100% complete, and only works with referenced images for tilesets
>>
>> Atached is the code and some test files
>>
>> Porfirio Ribeiro
>>
>
> I tested your exporter and it looks pretty good! I'd like to include
> it in the next Tiled release (0.7.1). Is this alright with you and
> also that it'll be licensed under the GPL? You can of course choose to
> make your code available under any GPL-compatible license.
>
> There seems to be a small issue that even when you select you want to
> save as JavaScript, it still selects the JSON plugin when using the
> .js extension. I will look into that issue. Probably we should just
> remove the .js extension from the JSON plugin.
>
> Also, it seems to be both JSON and your plugin produce code that
> parses as JavaScript. Can you tell me what exactly is the difference
> that makes one easier to use than the other?
>
> Thanks,
> Bjørn
>
More information about the tiled-commit
mailing list