Ejecta
Ejecta copied to clipboard
creating 2 canvas screen problem ?
hi,
i just download your lastest fork
when i lunch the game i have the follwing issues
there are 2 canvas screen created ? why ? or how to solve this ?
(i don't use what you told me in last post about setting canvas.heigh/twidh and style)
these days i try to keep my code clean and fast ... this why i try to solve any problems...
thansk
this message will be print when you change the size of canvas . Did you do that ?
ni, i told you that i just donwload your lastest fork and i don't change anything related last post about the canvas screen (our discussion) = i don't use it
you mean the original ejecta no this log ?
And I just see one canvas be created , not see the second one.
your fork retry it by your self
tried , and not reproduction :(
in your image , I just see one canvas be created (in the red rectangle), where is the second one ?
ok thats not a big problem anyway thanks
@matrixreal , I found this problem. the Original Ejecta has this issue too.
I have this problem too. Is there a fix? On Wed, 22 Apr 2015 at 2:31 pm finscn [email protected] wrote:
@matrixreal https://github.com/matrixreal , I found this problem. the Original Ejecta has this issue too.
— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95035541.
see https://github.com/phoboslab/Ejecta/issues/502
Don't worry , I will fix it soon :)
Done :), please pull new version.
Okay, great! On Wed, 22 Apr 2015 at 2:46 pm finscn [email protected] wrote:
Done :), please pull new version.
— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95038419.
@rungo73 have you this problem too ? and you fix it ? @finscn about canvas.width = w * window.devicePixelRatio; canvas.height = h * window.devicePixelRatio; canvas.style.width = w ; canvas.style.height = h;
is this with retinaresolution to true or false ?
because i'm woring on ios game and i have to work for universel device (iphone 4 , 4s , 5 ,5s , 6 , 6 plus , ipad etc ...)
@matrixreal
- I fix this bug. please pull new version.
- retinaResolution = false;
My build runs ok but I get this warning in console..
*Class JSWTFMainThreadCaller is implemented in both *
Is this a problem?
On Wed, Apr 22, 2015 at 4:14 PM, finscn [email protected] wrote:
@matrixreal https://github.com/matrixreal
I fix this bug. please pull new version.
retinaResolution = false;
— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95043529.
@rungo73 , I think no problem. see https://github.com/phoboslab/Ejecta/issues/479
Ok good. On Wed, 22 Apr 2015 at 3:55 pm finscn [email protected] wrote:
@rungo73 https://github.com/rungo73 , I think no problem. see phoboslab#479 https://github.com/phoboslab/Ejecta/issues/479
— Reply to this email directly or view it on GitHub https://github.com/finscn/Ejecta/issues/5#issuecomment-95045211.
@finscn you fixed it ? ah thats so cool
and so i don't need to add to my code canvas.width = w * window.devicePixelRatio; canvas.height = h * window.devicePixelRatio; canvas.style.width = w ; canvas.style.height = h;
now its automatically ?
@matrixreal , you have not to set style.width/height but canvas.width/height is request.