Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

5 years ago by Rungo73

Hi there,

First up many thanks to everyone ho has helped me along the way so far. Very much appreciated and I've learnt a lot so far.

I have a question regarding image sizes and scaling.

I am developing a game to run on ios. Currently Ive made the graphics 1:1 and I do this in my main..

var scale = (window.innerWidth < 640) ? 2 : 1;

ig.main( '#canvas', MyMenu, 60, window.innerWidth * scale, window.innerHeight * scale, 1, ig.ImpactSplashLoader );

So that my game is always fullscreen. Trouble is my graphic files are way big. I'd like to make them all 75% smaller (they're pixel art so resizing isnt a drama) - so my 64px tile becomes 16px

How do I setup my main scaling so everything is scaled back up. Also I want to package with ejecta so would be geat if someone could explain best way to do this.

I don't have to worry about device orientation - my game is designed for portrait only.

Cheers,

Tom.

5 years ago by Apiheld

Since this wasn't entirely clear to me some time ago, too, I ran some tests and wrote them down here. I hope it helps:

http://www.ntaso.com/ejecta-impact-js-which-resolution-for-iphone/

5 years ago by Rungo73

This is great! Exactly what I was looking for.

Many thanks.
Page 1 of 1
« first « previous next › last »