Created
August 29, 2014 23:00
-
-
Save halldorel/f38fa16aca7d29e6d352 to your computer and use it in GitHub Desktop.
Tilbrigði við draw function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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