Generates a 64x64 grid rectmap:

>>> f = open('test-level.xml', 'w')
>>> print >>f, '<?xml version="1.0"?>'
>>> print >>f, '<resource>'
>>> print >>f, ' <rectmap>'
>>> for x in range(64):
...  print >>f, '  <column>'
...  for y in range(64):
...   print >>f, '<cell />'
...  print >>f, '  </column>'
...
>>> print >>f, ' </rectmap>'
>>> print >>f, '</resource>'
>>>


    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
-~----------~----~----~----~------~----~------~--~---

Reply via email to