canvas的一些参数设置在一些安卓机上无效
// pass in the canvas’ context to this function
function disableAntiAliasing(context) {
// note: you must factor this into any other context.translate calls in the future
context.translate(0.5, 0.5);
context.webkitImageSmoothingEnabled = false;
context.mozImageSmoothingEnabled = false;
context.imageSmoothingEnabled = false;
}网上搜到的这个,这么设置之后,用drawImage画tilemap, 正常情况下应该是:
但是有些安卓机上却出现了问题:
也就是参数设置了无效游戏叫《小小勇者》各位有兴趣可以试一下,看看有没有问题
