Sign in to follow this  

Resolution and retina support with scalemode = RESIZE

Recommended Posts

I have been searching around and it seems that to be able to support retina displays, the RESIZE scalemode cannot be used. Is this really the case? My game is dependent on the responsiveness and freedom the RESIZE scalemode provides. 

By setting the resolution according to window.devicePixelRatio, the resolution and the size of all game objects increases. When scaling the game objects down to their appropriate sizes, the click-listeners disappears or gets misplaced.

Any nudge in the right direction is very much appreciated!

Share this post

Link to post
Share on other sites

hey toggthedog,

this is known. To support retina you can check the DPI and then use @2x graphics and rescale your graphics. But you need to rescale anything else to- that means for input listeners and stuff the "hitArea" etc. There is no native implementation for retina screens.

I see that it's kind of hard to implement something that supports retina displays since the behavior is really related to the type of game you make.
So it's up to you to configure it. But I also see a lot of developers struggling with it: A topic that pops up again and again.

regards :)

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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.