Updated Lua examples
Most of the examples already working! Only some of them still fail, mostly related to data arrays...
This commit is contained in:
parent
7f9513fbf4
commit
865b216ebe
17 changed files with 69 additions and 78 deletions
|
@ -36,7 +36,7 @@ local pixels = {}
|
|||
|
||||
for y = 1, height do
|
||||
for x = 1, width do
|
||||
if (((x/32+y/32)/1)%2 == 0) then pixels[y*height + x] = DARKBLUE
|
||||
if ((((x - 1)/32+(y - 1)//32)//1)%2 == 0) then pixels[y*height + x] = DARKBLUE
|
||||
else pixels[y*height + x] = SKYBLUE end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue