TIC-80

1 · Eric · Oct. 18, 2022, 2:40 p.m.
Basic setup function init() end init() function TIC() -- here lies our game loop end Game loop function TIC() global.time=global.time+1 input() if global.time%global.updateSpeed==0 then update() end draw() end General helper functions function cos(x) return math.cos(x) end function sin(x) return math.sin(x) end function tan(x) return math.tan(x) end function rnd(x,y) return math.random(x,y) end function rndArray(a) return a[math.random(#a)] end function ins(t,e) return table.insert(t,e) end func...