fix to the new API : lutro.graphics.rectangle with 5 arguments

This commit is contained in:
Niouby 2015-02-25 22:12:04 +01:00
parent 44102bec90
commit f300bdaf17

View File

@ -35,7 +35,7 @@ function World:draw()
for i=0,self.lines-1 do
for j=0,self.columns-1 do
lutro.graphics.setColor(self.grid[i][j]:getColor())
lutro.graphics.rectangle(i*6,j*6,5,5)
lutro.graphics.rectangle("fill",i*6,j*6,5,5)
end
end
end
@ -49,7 +49,7 @@ function World:neighborhood()
end
function World:neighbour(line, column)
neighbour = 0;
neighbour = 0
for i=line-1,line+1 do
for j=column-1,column+1 do
if (i~=line or j~=column)