T
T
Triborg-3332019-11-18 22:22:08
JavaScript
Triborg-333, 2019-11-18 22:22:08

How to implement camera + viewport CANVAS in game?

Hello, Dear programmers!) I don’t understand how to correctly implement a camera on a game character.
please tell me how to do it right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-11-18
@Stalker_RED

Choose one of the popular engines, and look at the source.
https://www.slant.co/topics/768/~best-javascript-g...
There are several more than one way, and there is no single correct one.
If you are not at all in the subject, then before writing your own engine, it does not hurt to get acquainted with the capabilities of competitors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question