-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
Nibbl-z edited this page Aug 10, 2024
·
1 revision
Setting up Yan in your project is a very straightforward process. First you'll need to require yan.lua at the top of your project, and then you'll need to call some of Yan's functions in the built-in Love events.
require("yan")
function love.update(dt)
yan:Update(dt)
end
function love.keypressed(key, scancode, rep)
yan:KeyPressed(key, scancode, rep)
end
function love.textinput(t)
yan:TextInput(t)
end
function love.wheelmoved(x, y)
yan:WheelMoved(x,y)
end
function love.draw()
yan:Draw()
end