zaterdag 19 december 2015

HaXe : Getting real device coordinates

For: Stencyl/HaXe

Real device resolution / dimension / Width / Height of the screen:

var x = nme.system.Capabilities.screenResolutionX;
var y = nme.system.Capabilities.screenResolutionY;

Replace nme with openfl if you are on that tree.




Geen opmerkingen:

Een reactie posten