Difference between revisions of "Lua for TIC80"

From Media Design: Networked & Lens-Based wiki
Jump to navigation Jump to search
(Created page with "== for == See: https://www.lua.org/pil/4.3.4.html <source lang="lua"> function TIC() cls(0) for i=1,100,2 do rect(0,0,i,i,i%16) end end </source>")
 
Line 1: Line 1:
 +
== tables ==
 +
 +
 
== for ==
 
== for ==
 
See: https://www.lua.org/pil/4.3.4.html
 
See: https://www.lua.org/pil/4.3.4.html
Line 12: Line 15:
 
end
 
end
 
</source>
 
</source>
 +
 +
== function ==
 +
 +
== break, return ==
 +
https://www.lua.org/pil/4.4.html

Revision as of 21:12, 31 January 2021

tables

for

See: https://www.lua.org/pil/4.3.4.html

function TIC()
 cls(0)
 
 for i=1,100,2 do
  rect(0,0,i,i,i%16)
 end

end

function

break, return

https://www.lua.org/pil/4.4.html