EDIT: not really a bug, rather a missing feature
In Windows simulator everything works fine, but on device (Android 2.2) I get black screen when switching to a new scene using Director class.
[lua]-- “name” is a level name in the format “worldX.levelX”
function new(name)
– creating a local group to put everything into and return
local lg = display.newGroup()
lg:insert(createObjects(require(name).grid))
lg:insert(createWalls())
lg:insert(createPauseMenu())
return lg
end[/lua]
If the name is in the format “levelX” (i.e. packages aren’t used and there are no nested folders) then everything loads fine.
Using packages is very logical in this scenario however, making folders for worlds that contain lua files (levels). Will packages be supported in the future? [import]uid: 52103 topic_id: 11366 reply_id: 311366[/import]