A
A
Afafks1231321321652020-05-20 17:11:59
Canvas
Afafks123132132165, 2020-05-20 17:11:59

How are sprites enlarged?

So I noticed that in some unity tutorials they take a 32x32 sprite and increase it without losing quality. How can this be done on js canvas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2020-05-20
@xmoonlight

Everything is a little different in js/canvas.
The required sprite map is taken for the given segmented canvas resolution by the event of its resize.
Logic - as in adaptive layout, where the necessary styles are specified in css through @media.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question