can't you pass in a 2d list/array of cell objects to the constructor of the rect map? and access them like my_map.cells[i][j] later?
I haven't used tile maps but it looks like it to me: __init__(self, id, tw, th, cells, origin=None) Devon On Jun 9, 10:54 am, Lucio Torre <[email protected]> wrote: > On Tue, Jun 9, 2009 at 11:29 AM, Mathias Roth<[email protected]> wrote: > > > Hm, I'm still a bit confused... Let's say I want to randomly generate > > my map and not load anything from xml... How would I construct a layer > > (and which one do I need) and make let's say the cell at the position > > [5][3] have a certain tile as background? > > Im not sure how to do that. Maybe generate a random xml? :) > > richard? > > Lucio. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
