Skip to content

start

Start the game loop and run the initial function.

Parameters

  • init? — A function that starts the game processes.
  • options? — A table with width, height and title.
start(function()
Player({x = 400, y = 300})
end, {title = "Move"})

Related: process.

See the runner timing guide for more examples and limits.