How to work with graphics in js?

Decided to make a little game in js but here is the problem:nothappened to use sprites in pure js ie if you call drawImage() and to write down the numbers the clip ie sprite out of many sprites cut out one that does not move the sprite, ie it can't move what to do because when you cut absent x and y, and it is the task of what to do.
March 19th 20 at 08:29
1 answer
March 19th 20 at 08:31
Solution
canvas https://developer.mozilla.org/ru/docs/Web/API/Canv...

well, it is better to use frameworks for game development
Thank you friend. - jace26 commented on March 19th 20 at 08:34

Find more questions by tags JavaScript