1 decade ago by Donzo
Hello again:
I am having issues with scaling on Ejecta.
My game is designed with a screen width of 1024 px in mind.
The problem occurs when I attempt to play the game on an iPhone 5,
which does not have a width of 1024.
Ejecta will shape the canvas to match the iPhone 5 screen,
which is cool,
but the effect is that the buttons and really
all clickable objects end up with targets that are below
their drawings.
Surely their must be a way to correct this,
but I have reached the limited extent of my knowledge.
Hopefully someone more capable than I has tangled with this issue.
Here is the code in my Ejecta index file:
I have also attempted to call
repeatedly and have achieved the same results.
Is there a different call or something that I can make to realign
the buttons and clickable entities so that the targets
are within the drawings?
Edit: Whoops, I'm so dumb that I put 1028 in the title.
See how badly I need your help?
I am having issues with scaling on Ejecta.
My game is designed with a screen width of 1024 px in mind.
The problem occurs when I attempt to play the game on an iPhone 5,
which does not have a width of 1024.
Ejecta will shape the canvas to match the iPhone 5 screen,
which is cool,
but the effect is that the buttons and really
all clickable objects end up with targets that are below
their drawings.
Surely their must be a way to correct this,
but I have reached the limited extent of my knowledge.
Hopefully someone more capable than I has tangled with this issue.
Here is the code in my Ejecta index file:
// Load the game ejecta.include('lib/impact/impact.js'); ejecta.include('lib/game/main.js'); canvas.style.width = window.innerWidth; canvas.style.height = window.innerHeight;
I have also attempted to call
this.buttons.align();
repeatedly and have achieved the same results.
Is there a different call or something that I can make to realign
the buttons and clickable entities so that the targets
are within the drawings?
Edit: Whoops, I'm so dumb that I put 1028 in the title.
See how badly I need your help?