1
Graphics / Re: Setting pixels per unit
« on: October 12, 2013, 10:00:36 pm »
@eXpl0it3r: That's what I am doing so far, I was just wondering if I can make it easier
@Nexus: That's why I thought of this - I wanted to use something more like view of size (8,6) instead of (800, 600), which means 10 tiles in x, 8 tiles in y instead of 800px in x, 600px in y - this can be done by view.scale(1/(pixelsPerUnit)); but I would need to apply the same scale to each sprite during creation, which would be very inconvenient for me.
Anyway, thanks you both for immediate help, problem is solved
@Nexus: That's why I thought of this - I wanted to use something more like view of size (8,6) instead of (800, 600), which means 10 tiles in x, 8 tiles in y instead of 800px in x, 600px in y - this can be done by view.scale(1/(pixelsPerUnit)); but I would need to apply the same scale to each sprite during creation, which would be very inconvenient for me.
Anyway, thanks you both for immediate help, problem is solved