1 decade ago by igr
Hi! Can someone explain to me what Canvas native resolution is?
I have for example chunks of background image, which is 720px. I reuse it and it spans for 720px N-number of times. I have Canvas screen set to 1200 in width and 720 in height. Which part is the native resolution here?))
I also got a strange problem with iphone 4G. It downloads and shows game only if I have regular:
As soon as I insert UA checks in my main.js, Safari on iphone 4g tries to download the game and then gives up giving javascript timeout errors in debug console.
Thank you!
I have for example chunks of background image, which is 720px. I reuse it and it spans for 720px N-number of times. I have Canvas screen set to 1200 in width and 720 in height. Which part is the native resolution here?))
I also got a strange problem with iphone 4G. It downloads and shows game only if I have regular:
ig.main( '#canvas', XClimate, 20, 1200, 720, 1);
As soon as I insert UA checks in my main.js, Safari on iphone 4g tries to download the game and then gives up giving javascript timeout errors in debug console.
Thank you!