Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retina strategy #52

Open
stevenalanstark opened this issue Aug 17, 2017 · 2 comments
Open

Retina strategy #52

stevenalanstark opened this issue Aug 17, 2017 · 2 comments

Comments

@stevenalanstark
Copy link
Contributor

stevenalanstark commented Aug 17, 2017

Hello,

Do you have any advice for retina strategies when using assets from a FLA file ?

The best approach I can come up with is to create a timeline with labels for x1 x2 and x3 pixel densities, with their contents scaled to 100%, 50% and 33.3%, then to loop through the scene, and if it find a label, gotoAndStop on the correct label after removing the unused clips.

This works, however it's a lot of work for the artists to need to create these timelines for each static image used.

Is there a better solution here?

@ianmcgregor
Copy link
Contributor

Hi @stevenalanstark I don't know if it's a particularly good strategy but what I have done is brief artists to build the FLA at maximum resolution and then create a 50% scaled copy of each image and loop through the fla.stage.assets modding the image URLs from name.png to [email protected] (when on mobile). PixiJS auto-detects @Nx in image URLs and adjusts the resolution of the Sprite for you.

@stevenalanstark
Copy link
Contributor Author

Interesting approach, thank you for the feedback :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants