Closed emilybarwinczak closed 3 years ago
http://www.java2s.com/example/javascript/canvas/randomly-spawn-one-by-one-object-in-canvas.html
Here is an article you may want to check out in regards to random generation in Canvas. I also see that you said you already tried adding a for loop, where/how did you implement it and what wasn't working?
What's the problem you're trying to solve?
trying to spawn multiple objects on the canvas
Post any code you think might be relevant (one fenced block per file)
If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?
no error -- found a site online that helped explain (part of) this. I'm also not totally sure about all the values/elements in the code block
What is your best guess as to the source of the problem?
assuming I need to add some sort of array or for loop but not sure where or how
What things have you already tried to solve the problem?
adding a for loop