0

How can I draw on canvas with 2d array

Array 2d

9/23/2019 5:29:00 PM

¿ ?

4 Answers

New Answer

+1

I'm not sure if you are wanting to make games but this demonstrates what you are asking for. "This is not my code". https://code.sololearn.com/W9BB0i330wVN The source code comes from http://technologies4.me/articles/tile-map-canvas-javascript-a1/canvas-tile-map-source-code-p2/

0

I don't really understand here gameMap[((y*mapW)+x)] in the code

0

There is a video on that website. He explains everything.

0

Join to learn canvas. Just started https://youtu.be/VBa-7NuJlAI