Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mutenfuzz

Pages: [1]
1
Support / Platform specific x1 and x2 assets
« on: March 21, 2015, 04:48:40 pm »
Hi,

I'm trying to get to grips with platform specific collections and how multiple device resolutions are handled, so I've setup a simple project to do some testing. I've created a sprite collection with some placeholder images:

blockA.png  (128x128)
blockB.png  (128x128) <--- x1 SD

blockA@2x.png (256x256) <-- x2 HD

Please note that only blockA.png has a 2x counterpart.

If I select 1x on 2dToolkit->Preferences everything looks as expected. When I select 2x I can see  blockA is now displayed with the higher quality image (2x) while maintaining the same size on screen as before. The problem here is that blockB is no longer the same size as blockA (now it's half its former size). I'm under the assumption that since there's no 2x asset for blockB, TK defaults to the x1 asset. I was expecting blockB to be scaled up automatically though. Is this the expected behaviour? If not, is there any workaround or am I somehow missing the point here?

Of course I would normally supply 2x assets for all my images, so this should not be a concern - it's just that I would like to understand the ins and outs of this stuff.

Thanks!










Pages: [1]