On Sun, 1 Feb 2009, Devin Jeanpierre wrote: > The documentation seems odd. For instance, when I was building an XML > file for a RectMap-- the example shows namespace:tile, whereas docs > elsewhere in the API state that a dot separator (.) not colon (:) is > to be used. > > 'If a namespace is given then the element ids from the "road- > tiles.xml" will be prefixed by the namespace and a period, e.g. > "road.bitumen".'
Sorry, the docstring seems to have gotten a little out of date in places. I've checked in a fixed version. The example in test/test_tiles.py works, and has a valid (though simple) map & tileset XML you could look to for examples. > And I can't properly figure out how to write it anyway. What I wrote > up fails miserably, since it doesn't attach a tile to the cells: > http://paste.pocoo.org/show/102193/ This is due to the above documentation error. The correct method of referencing the tile image is with: <cell tile="name"> > Furthermore, my attempt at using require so as to match what the > example showed met with failure: http://paste.pocoo.org/show/102195/ > I got a KeyError for 'require'. The correct tag name is "requires". Again sorry for the documentation error there. Another more complex example of using the tile engine may be found at http://pyggy.pyweek.org/e/threads/ Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
