Jump to content

Retina support question


Recommended Posts

I found a topic about retina support in Panda.js but it's about the old pixi versions, I just want to ask how can I make it work for now? 


Well I realize bamboo does not have retina support, those texts and lines are blur. I just checked the canvas element which does not have width and height set to twice of css size. It won't work even set system.retina to true.


Can anyone give me some advice?




Link to comment
Share on other sites

Hmm, I use a Macbook Pro (retina) and the way I handle fonts, is by using bmGlyph and exporting @2x and @4x assets.


I use 480x320 for my base game resolution. All my standard assets are created for those dimensions, but I also provide assets twice as big and four times as big, letting the engine decide when to load high resolution graphics.


This works for both fonts and graphics and your game looks crisp on a Mac screen and works just as well on an iPhone 4.


The options I use in my config are ...

system: {    hires: 4,    retina: true,    scaleToFit: true, // DESKTOP BROWSERS    resizeToFill: true, // MOBILE BROWSERS    width: 480,    height: 320},

Let me know if you need any more help :)

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...