Jump to content

How to increase resolution of PIXI.view on mobile devices?


finalhope
 Share

Recommended Posts

Hi everyone! I making the game with pixi.js on mobile devices. I create a application:

var app = new PIXI.Application( { 
                width:  document.documentElement.clientWidth, 
                height: document.documentElement.clientHeight
             } );

And on my smartphone my game get resolution about 300x700, but my smartphone resolution is 1000x2000. Because of this my game look is blur with small resolution. How to increase resolution of PIXI.view?

Link to comment
Share on other sites

Search for "devicePixelRatio" in this subforum, or in pixijs github issues. Also, rotating will always be pain. Also, "PIXI.settings.FILTER_RESOLUTION" or RESOLUTION_FILTER, i dont remember which, if you plan to use filters too. Also, decide whether you use that as resolution or just multiply screen dimensions by it. Also, differences between "app.screen.width" and "app.view.width". 

Its not possible to teach that thing, you have to go through pain. Even if there would be article, you wont understand it until you try.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...