Skip to content
Rob Loach edited this page Jul 20, 2019 · 4 revisions

TIC is the main function. It's called at 60 fps (60 times every second).
It has no parameters and is the core where all the magic happens.

It's the only function that must be present in the code:

-- script: lua
function TIC()
  -- Put your stuff here
end
-- script: moon
export TIC=->
  -- Put your stuff here
// script: js
function TIC() {
  // Put your stuff here
}
// script: wren
class Game is TIC {
  TIC() {
    // Put your stuff here
  }
}
;; script: fennel
(global TIC
  (fn tic []
    ;; Put your stuff here
  )
)
// script: squirrel
function TIC() {
  // Put your stuff here
}
You can’t perform that action at this time.