mirror of
https://github.com/libretro/lutro-game-of-life.git
synced 2026-11-07 04:15:57 -10:00
fix to the new API : lutro.graphics.rectangle with 5 arguments
This commit is contained in:
1 parent
44102bec90
commit
f300bdaf17
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user