LuLua · Lesson 7 of 8
Your First Game with LÖVE
LÖVE (love2d) is a free 2D game framework: you write three callback functions — load, update, draw — and it handles the window, graphics, and input. A moving-square 'game' is 20 lines.
That's the whole game loop pattern used by every engine: update() advances the world based on elapsed time, draw() renders it, ~60 times per second. Multiplying movement by dt makes speed identical on a 30 FPS laptop and a 240 Hz gaming rig.
✦ Tip
From here: LÖVE's wiki (love2d.org/wiki) documents every function with examples. For Roblox instead, everything from the OOP lesson applies — Roblox Studio scripts are Luau, a typed Lua dialect.
From here: LÖVE's wiki (love2d.org/wiki) documents every function with examples. For Roblox instead, everything from the OOP lesson applies — Roblox Studio scripts are Luau, a typed Lua dialect.