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".' >From the example: '<tile ref="ground:grass" />'
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/ Proof of this is elementary: http://paste.pocoo.org/show/102194/ 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'. This led me to consider that this module is not fit for public consumption, in which case I'm in a bit of trouble, since I was building my game (for a 3-week competition) off of it. Traceback (from the same test script posted above): http://paste.pocoo.org/show/102196/ Advice would be appreciated-- if it's just the XML loading that's broken, I can deal with it. If it's not broken, and it was me that was screwing up, that makes me happy. If the entire module is broken, I'll have to figure something else out. Whatever answer there is, I would appreciate getting it (swiftly, if possible, since this is a limited- time competition). Thanks for your time, Devin Jeanpierre --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
