Help needed with coordinates for my first app

Hi, please bear with me I am new to app development and the COrona SDK but my background is in c# development for .net (so I might be going about things the worng way!).

I am trying to build a ‘join the dots’ type game for my first app. I’ve started by setting up an array of corrdinates for each shape which I then intended to draw on the screen, but scaling has confused me. Say I have this for my triangle:

local shape1 = {
“0,300”,
“150,0”,
“300,300”}

I then have a function which iterates through the array and plots each ‘dot’ to the screen. I am currently testing in the android simulator only.

Will the shape autoscale if viewed on an ipad?
And secondly I had envisaged drawing each shape in a ‘group’ so that I could autocenter the group vertically and horizontally to the screen and then my coordinates would be in relation to the group not the screen. But before I draw anything in the group it always seems to have a width of 0. Am i totally on the wrong track with this?!

Thanks for any help! [import]uid: 139209 topic_id: 24760 reply_id: 324760[/import]

It will scale based on the scale setting in config.lua, so check there first :slight_smile: (Try letterbox, which is the default.)

A group will have a width of 0 before you add anything to it, yes - that’s normal :slight_smile: [import]uid: 52491 topic_id: 24760 reply_id: 100404[/import]

Ok thanks - I’ve now got my config.lua and build.settings files set up so that’s that bit figured out. Can anyone clarify the ‘groups’ question for me?
Thanks for your help! [import]uid: 139209 topic_id: 24760 reply_id: 100408[/import]