Hello Guest

Author Topic: Web vs. Mobile Screen Size  (Read 3093 times)

davedev

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 10
    • View Profile
Web vs. Mobile Screen Size
« on: August 27, 2013, 12:23:28 pm »
I have a mobile version of an app that I use the platform settings to do the 1x, 2x, etc. screen sizes. I also need to do a web version that is 68% of the 1x version. For example, the 1x version is 1024 x 768 and the web version is 700 x 525. What's the best way to manage this?

The web version doesn't need to switch to any of the 1x, 2x sizes so it can have its own sized textures/sprite collections and be published separately.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Web vs. Mobile Screen Size
« Reply #1 on: August 27, 2013, 12:55:40 pm »
You could add a new 0.68x platform, but you'll be going into unsupported territory there. tk2dSystem.assetPlatforms is where the platforms are defined.

Alternatively, you could write a script to automatically generate alternate web only scenes for you with a special web only sprite collection. This is by far the most efficient solution, but will require a little bit of work to implement properly.