Search found 1 match

by Zelpal
Wed Jan 24, 2018 3:02 pm
Forum: Support and Development
Topic: Help with random spawning
Replies: 1
Views: 1996

Help with random spawning

Hey, I was working on a random tree spawning function, but I've been confronted to a problem. I first created the function: function spawnTree(nb) for i = 0, nb-1 do Tree = {} Tree.x = math.random(0, love.graphics.getWidth()) Tree.y = math.random(0, love.graphics.getHeight()) table.insert(Trees, Tre...