Skip to content

Instantly share code, notes, and snippets.

@halldorel
Created August 29, 2014 23:00
Show Gist options
  • Save halldorel/f38fa16aca7d29e6d352 to your computer and use it in GitHub Desktop.
Save halldorel/f38fa16aca7d29e6d352 to your computer and use it in GitHub Desktop.
Tilbrigði við draw function
draw = function (self)
for rows = 0, self.rows, 1 do
for cols = 0, self.bPR, 1 do
love.graphics.setColor(0,0,0)
x = cols * (self.blockW + self.p)
y = rows * (self.blockH + self.p)
love.graphics.rectangle("fill", x, y, self.blockW, self.blockH)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment