Lua for TIC80: Difference between revisions

From XPUB & Lens-Based wiki
(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>")
 
No edit summary
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