Search found 1 match

by thunderlong
Sun Oct 10, 2021 12:25 am
Forum: Support and Development
Topic: How can I make randomly generated multiple objects spawn on the screen?
Replies: 1
Views: 3448

How can I make randomly generated multiple objects spawn on the screen?

Coin = {} function Coin:load() self.width = 20 self.height = 20 self.speed = 200 self.x = love.math.random(0, love.graphics.getWidth() - self.width) self.y = love.math.random(0, love.graphics.getHeight() - self.height) end function Coin:update(dt) end function Coin:draw() love.graphics.rectangle(&qu...