Dynamic resolution, Director class, windows-mac emulator problems.

Hi im currently working in a videogame.for ipod and android.
But im having some problems.

Im using director class 1.4, but im having problems working with image dynamic resolution, transitions, params and groups.

Case1

I was working with windows for cross platform (ios and droid) development.
config.lua
application =
{
content =
{
width = 320,
height = 480,
scale = “letterbox”,

imageSuffix =
{
["-x15"] = 1.5,
["-x2"] = 2,
},
},
}
build.settings

Supported values for orientation:
– portrait, portraitUpsideDown, landscapeLeft, landscapeRight

settings = {

orientation = {
default = “portrait”,
content = “portrait”,

supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown” }
},

iphone = {
plist = {
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png” ,
“Icon@2x.png” ,
“Icon-72.png” ,
“Icon-Small-50.png” ,
“Icon-Small.png” ,
“Icon-Small@2x.png”
},
UIStatusBarHidden = true,
UIPrerenderedIcon = true,
UIApplicationExitsOnSuspend = true,
UIAppFonts = {“SF_Slapstick_Comic.ttf”}

},
}
}

–[[ For Android:

androidPermissions = {
“android.permission.INTERNET”,
},
]]–
}

Using proportionally adjusted images, using rectangles and spritesheets.
Double size for doble resolution for Ipod 4g, if im not wrong.

Iphone emulator was working good, but iphone 4 emulator didnt show the images properly, because i was using positioning by coordinates for 3g resolution 480x320. When i changed position, iphone 3g emulator didnt show properly my images. What should i do? Here is an example

local character1 = sprite.newSprite(charSet) for 960 x640
character1.x=104
character1.y=640

local character1 = sprite.newSprite(charSet) for 480 x320
character1.x=52
character1.y=320
.

Case 2

Now im having a new problem, i organized and programmed using corona sdk in windows.
With the problem i mentioned before, i took away dynamic resolution and imagesuffix and started working in different folders, one for 3d, 4g and adroid.

Now i was focusing in iphone4.
application =
{
content =
{
width = 640,
height = 960,
scale = “letterbox”,
},
}

But surprise, this content adjustment is working with 3g, 4g and droid in corons windows emulator.
Using double resolution images, adjusted for 4g. I have not test yet in my device.

I tried with my mac emulator, using windows code.
Iphone emulator, showed me mixed images.
Iphone emualtor 4g showed me and error, i really dont know why, but its mixing wit the previous scene.

Here is the code

Director ERROR: Failed to execute new( params ) function on ‘Worldmap’. Here is the code:

[blockcode]
module(…, package.seeall)

–====================================================================–
– SCENE: [NAME]
–====================================================================–

–[[

  • Version: [1.0]
  • Made by: [name]
  • Website: [url]
  • Mail: [mail]

******************

  • INFORMATION
    ******************

  • [Your info here]

–]]

new = function (params)


– Groups

local localGroup = display.newGroup()

ego = require “ego”
saveFile = ego.saveFile
loadFile = ego.loadFile


– Your code here

– Storyboard slide & skip button
local Map
local Reddot1
local Reddot2
local Reddot3
local puntosacumulados
local score
–functions
local Main={}
local Maplisteners={}
local Showwindow1={}
local Showwindow2={}
local Showwindow3={}

– Main
function Main()
Map=display.newImage(“Map.png”,0,0)

Reddot1= display.newCircle(110,600,30)
Reddot1:setFillColor(255,0,0)

Reddot2= display.newCircle(320,780,30)
Reddot2:setFillColor(255,0,0)

Reddot3= display.newCircle(510,600,30)
Reddot3:setFillColor(255,0,0)

score=loadFile(“score.txt”)
puntosacumulados=display.newText(score,300,40,“Helvetica”,40)

localGroup:insert(Map)
localGroup:insert(Reddot1)
localGroup:insert(Reddot2)
localGroup:insert(Reddot3)
localGroup:insert(puntosacumulados)

Maplisteners(“add”)

end

– agregando listeners a los botones next y skip

function Maplisteners (action)
if (action==“add”)then
Reddot1:addEventListener(‘tap’,Showwindow1)
Reddot2:addEventListener(‘tap’,Showwindow2)
Reddot3:addEventListener(‘tap’,Showwindow3)
else
Reddot1:removeEventListener(‘tap’,Showwindow1)
Reddot2:removeEventListener(‘tap’,Showwindow2)
Reddot3:removeEventListener(‘tap’,Showwindow3)
end
end

–funciones para popup

function Showwindow1()

director:openPopUp(“Window”, “fade” )
end
function Showwindow2()

director:openPopUp(“Window2”, “fade” )
end
function Showwindow3()

director:openPopUp(“Window3”, “fade” )
end

Main()

— CODE —


– MUST return a display.newGroup()

return localGroup

end

[/blockcode]

I really dont understand the emulators and whichone is correct, i cant publish for tesing, yet.
Or whats the correct config and build setting for 3g,4g, droid publishing.

If someone wants to help, or check my code. Please pm and i will send you my code.
Im 15 years and im just starting, but i really want to learn! Please help.and thanks.

[import]uid: 173185 topic_id: 30206 reply_id: 330206[/import]