On Mon, Apr 6, 2009 at 7:24 PM, Ricardo Kirkner <[email protected]> wrote: > >> >> refactor layers, add layer type. (we need to talk about this) >> refactor loader, add plugin support and make plugins. >> fix modes, so they only work with their layers. >> With this we should be able to have an easy way to create new layers, >> this are the extra layers i have in mind: >> - timeline >> - text >> - particles >> - draw >> > > The current collision layer will remain as a layer, or will it have to > be refactored as a mode on top of a normal layer? > > From what I saw in the aquaria demo, a nice usability feature for the > collision stuff would be to place all collision shapes into a separate > layer, but to be able to use the same sprites as in the normal layers > (although we currently only support circles). Inserting some collision > object should be doable without changing layers explicitely, but maybe > just selecting a 'mode' (which should draw the selected sprite with some > visual hints) on top of the selected sprite. > > Does this make sense? > > > We also discussed the possibility of being able to add/remove layers on > runtime (dynamically), possibly having to specify the type of layer to add.
If we only support circles for collision, we should only draw circles. I want to have many layers types, and 'modes' should say in which layer types they work. This is the only way i see that will allow us to easily add layer types and tools for those layers. So, collision should be: - a plugin for a layer type on the editor - a plugin for a layer type on the loader - a plugin for a mode thats only enabled on collision layers - a plugin to the "add layers" tool that adds a new collision layer. To be able to do this we need: 1- modes enabled only on certain layer types 2- pluggable loader 3- the add layer tool 4- the layer type refactoring. comments? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
