On Wed, Jan 7, 2009 at 3:50 PM, Kao Cardoso Felix <[email protected]> wrote: > A good start could be a text based format for describing cocos2d > scenes. I'm not very fond of xml, but maybe it's the way to go in that > case. Something like:
some silly changes to your idea: > > <scene name=FooScene> > <layer class="ColorLayer" color="#FFDD00" z=-10/> > <layer z=1> > <sprite image="foo.png" x="10" y="10" /> > <sprite image="bar.png" x="10" y="10" /> > </layer> > </scene> > > The class="ColorLayer" thing also could be defined as a tag itself > like <colorlayer>. Anyway, is just a *very* obvious idea that probably > someone already thought about. Anyone else thing this could be nice? I think that a scene edit that produces this kind of output would be great. And not so hard to do. The thing is that we want it to be a map, not just a scene, we may get into some issues: 1- is cocos fast enough to handle all the images the guy is putting on screen? (is like having a couple hundrer sprites in the scene) 2- we need to add some viewport support so we dont render everything (if not, a couple hundred turn into a couple of tens of thousands) 3- how do we check for collisions and stuff? regards, 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 -~----------~----~----~----~------~----~------~--~---
