1 decade ago by Alistair
Hey,
I have created my game using 8px * 8px tiles and my entities are displayed at 16px * 16px. However my background image looks fine with the zoom of 2 (if set to one the game looks too small), however my entities look very pixelated is there a way I can have the sprite sheet at a larger size but display them at 16px * 16px?
I tried using the method below in my entities draw function which did scale however my image appeared in the middle of screen. Is there a way around this?
Any help would be fantastic.
I have created my game using 8px * 8px tiles and my entities are displayed at 16px * 16px. However my background image looks fine with the zoom of 2 (if set to one the game looks too small), however my entities look very pixelated is there a way I can have the sprite sheet at a larger size but display them at 16px * 16px?
I tried using the method below in my entities draw function which did scale however my image appeared in the middle of screen. Is there a way around this?
ig.system.context.save(); ig.system.context.scale( 0.5, 0.5 ); this.parent(); ig.system.context.restore();
Any help would be fantastic.