Jump to content

phaser game speed normal vs retina


Recommended Posts

The pixel density will be greater on a retina display, so if you were moving 100px/s on a normal screen, it will feel like 50px/s on a retina display.

To solve this, you can either scale your game or adjust the velocity of objects when on a retina display. 

You can use Device.pixelRatio to detect higher DPI devices, including retina displays. You could then just multiply your velocity by that pixel ratio.

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.

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.


  • Recently Browsing   0 members

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