A
A
Artem Lisovsky2016-03-11 15:57:23
css
Artem Lisovsky, 2016-03-11 15:57:23

How to form a sprite correctly?

I would like to learn best practices from serious game developers.
We have a browser game .
There is a little chaos in it now with sprites: they are gigantic and there are a lot of them.
I want the content to adapt to different resolutions (and hence the elements to increase). But the elements are "drawn" by sprites, so changing their size will not work so easily. Therefore, a separate sprite with enlarged elements is loaded for each resolution (not to be confused with retina).
How to do "right" in this situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Sh, 2016-03-11
. @EgorkZe

Put all the sprites in a spritesheet, and then scale it to the right resolutions, and you don't have to load them all, just one spritesheet

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question