我正在通过 Phaser.io 创建一个简单的游戏如何让它在不同的屏幕上正确显示?
当我使用这个时:
var w = window.innerWidth * window.devicePixelRatio,
h = window.innerHeight * window.devicePixelRatio;
var avaProfile = game.add.image(w/1.66, h/6.3, 'avaProfile');
avaProfile.fixedToCamera = true;
发生这样的事情:
我什至无法想象如何让所有元素都具有自适应性