var rotwidth=Math.round( window.innerWidth);
var rotheight=Math.round( window.innerHeight);
LGlobal.resize(rotwidth,rotheight);
var scalex
var scaley
scalex=rotwidth/640;
scaley=rotheight/960;
var _x=-(rotwidth-640)/2
// number
var scale;
if(scalex<scaley){
scale=scaley;
}else{
scale=scalex;
}