WDI-SEA / game-project-issues

0 stars 0 forks source link

Getting multiple random items to appear #18

Closed DagemBefikadu closed 3 years ago

DagemBefikadu commented 3 years ago

What's the problem you're trying to solve?

I have randomly spawned objects Im trying to get more of those

Post any code you think might be relevant (one fenced block per file)


let objQuantity = []
const createLocation = () => {
    for(i= 0; i < 5; i++) {

        objQuantity.push({})
    }
}

If you see an error message, post it here. If you don't, what unexpected behavior are you seeing?

What is your best guess as to the source of the problem?

Well Im calling my objects like this

    let basketball = new spawnObjects('orange', 15, 15)

so i figured i could use that but i cant figure out how

What things have you already tried to solve the problem?

TaylorDarneille commented 3 years ago

I need to understand what you're problem is better, going to hyu for breakout room