Quote: "screen resolution in (setup.agc) must same with virtual resolution? "
No, the resolution in setup.agc is used on the PC and MAC to set the resolution when the app runs on these. It is the equivalent of the physical resolution on mobile devices.
If you use the commands getDeviceWidth() and getDeviceHeight(), on mobile devices they will return the physical resolution of the device, and on the PC and MAC they will return the values from setup.agc.
In all cases these values are considered the physical resolution.
Virtual resolution is totally independent of these - it can be the same, but does not have to be. AppGameKit scales the Virtual resolution for you.
SO if you set virtual resolution to 640x480 (Landscape);
- point 639,479 will be the bottom right corner
- point 320,240 will be the middle of the screen
- there will be 640 pixels across the screen and 480 down
On any device you use - no matter what the physical resolution of that device is.