Jump to content

Hi-Res mode doesn't work on pandajs 1.9.0


kucira
 Share

Recommended Posts

Hi Pandajs Team,

 

i'm using the new version of Pandajs, but it seems there is a bug in hires mode. i'm using 320x480 resolution, and I have tried on a device with a resolution of 720x1280 and it doesn't load the hi-res assets on mobile devices.  The hires mode working properly on pandajs 1.8.0, it load the @2x graphics. 

 

Any suggestion?

 

 

Thank you.

Link to comment
Share on other sites

I've problem with hires and retina parameters.

 

this is my config file:

pandaConfig = { name:"Game Name",                version:"1.0.0",                system:{ width:320,                         height:480,                         maxWidth:640,                         maxHeight:960,                         resizeToFill:true,                         retina:true,                         hires: 2,                        },                debug:{  enabled:true,                         color:"red"                      },                storage:{id:"com.gamename.test" }               };

if hires is declared, my game will be stuck in the loading screen with this error:

[Error] Error: Texture Error: frame does not fit inside the base Texture dimensions [object Object]setFrame (pixi.js, line 15126)Texture (pixi.js, line 15063)onXMLLoaded (pixi.js, line 16479)(funzione anonima) (core.js, line 536)

I double checked my media files and seems that all is ok (Files list: http://oi58.tinypic.com/2yzk2tl.jpg ).

 

The error seems releated to game size, or I'm wrong?

 

Thank you

Link to comment
Share on other sites

Yeah! That was the problem, I tried to check the .fnt files, and I saw that the @2x version load "font.png" instead of "[email protected]".

 

  <pages>    <page id="0" file="[email protected]"/>  </pages>

The game starts, but the resized canvas (from 320x480 to 640x960) doesn't load the @2x textures.

Panda.js 1.9.0Pixi.js 2.0.0Canvas renderer 640x960

f4phk0.jpg

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