jagannadha.sagar

Sprite Scaling according to the screen resolutions

Recommended Posts

PixiJS team doesnt have consensus on how to resize stuff - we prefer user to know this stuff. 

We have support of resolution (dpi), autoDensity property that sets css dimensions according to resize, and we have https://github.com/pixijs/pixi.js/blob/dev/packages/app/src/ResizePlugin.js 

You can also scale inside stage itself, or scale UI and game field separately.

There's no unified super-resizing component for application. There's also a stupid css+html+fixed_canvas_size way , like here: https://codesandbox.io/s/app-architecture-3-j0di5 , i'm using css flex.

So far, no one in community made a resize component that is worth putting into pixi. In that case we prefer to not teach users our bad habits and figure out solutions optimized for their game.

If you want to be the hero who finally ports Phaser ScaleManager as a pixi plugin - go for it :)

Share this post


Link to post
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...

  • Recently Browsing   0 members

    No registered users viewing this page.