Hi,
i wrote a simple single screen game and adapted it within one main.lua file. Now i am re-architecting to use director and other lua utilities.
My question is around director class - does each object need to be added to the maingroup that the core game returns. I have seen various samples do it differently. Even if i leave some objects outside of the group, it still seems to work.
Also, when i use a group, all display objects seems to be defaulting to the centerreferencepoint, which makes it difficult to position naturally, so do developers change the reference point to topleft each time.
i have seen samples using a hard coded coordinate system and some using relative reference using some part of display.contentWidth and display.contentHeight. both seem to work atleast in the simulator.
i will be scanning the sample code once again tonight, but need some good practice pointers from experience developers who have done this before.
thanks in advance.
[import]uid: 55009 topic_id: 11452 reply_id: 311452[/import]