Answer the question
In order to leave comments, you need to log in
How to create an array of images in JavaScript?
I'm making a javascript game. You need to create an array of helicopters at the top of the canvas. I create an array which I call "enemy". I enter x, y, offset, margin. It turns out that only one picture is addressed. Tell me how to make 10 enemies float at the top, given by pictures. If there is any other way, please point it out. Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question