android - TileMap occupy same physical space independent of screen density? -


i have been reading lately , don't understand how should manage tilemap occupies same physical space independent of screen density.

  • tiles: 48x32 pixels.
  • tilemap: 10x10 tiles.

how can achieve in devices map occupies 480x320 pixels of screen? possible?

do have put tiles of different sizes?

  • mdpi: 48x32 pixels.
  • hdpi: 72x48 pixels.

and on?

trying things getting me more confused, please clarify me.

as rule, should never deal in px anything. use dp (display pixels), because automatically scale different densities.


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -