2D Toolkit Forum

2D Toolkit => Support => Topic started by: davedev on August 27, 2013, 12:23:28 pm

Title: Web vs. Mobile Screen Size
Post by: davedev 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.
Title: Re: Web vs. Mobile Screen Size
Post by: unikronsoftware 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.