On Sat, Oct 11, 2008 at 11:47 PM, Richard Jones <[EMAIL PROTECTED]> wrote:
>
> On Sat, 11 Oct 2008, Kao Cardoso Felix wrote:
>> I created a very simple and small script to generate a tileset from an
>> image file and given tile dimensions. It runs as a command line tool
>> and it generates the .xml file defining the tileset for the given
>> parameters. If anyone finds it could be useful I can add it to the
>> tools dir on cocos svn. I'm planning on improving it soon to support
>> more tweaking on the way the image  atlas is divided like spacing
>> between tiles, offsets from image corners, etc.
>
> Cool! Adding automatic border generation would be a really nice feature.

Glad you liked it :)

When I mentioned border and offset specification I was thinking on
images with tiles that already have distances between them, but if
adding alpha 0 borders inbetween tiles would help on removing the
artifacts I would include it on the script. That would probably need
an extra dependency on PIL, though, but since using it to generate the
tileset could be optional I think this is not such a big deal. Better
have it then don't, I guess.

> I think we need to have the current tile code raise a warning if the cocos
> director window isn't initialised with the do_not_scale_window=True flag.

Well, I don't know what exactly the flag does, to be honest, I will
check on the docs/source later.

> I'd argue that the current window scaling should be ditched altogether :)

I can't give an opinion here too, because I'm not completely aware of
how all this stuff about window scaling is handled internally by
cocos.

-- 
Kao Cardoso Félix

Página pessoal: http://www.inf.ufrgs.br/~kcfelix
Blog: http://kaofelix.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to