Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A bouncing circle within the window boundaries.
-- main.lua
local x, y = 100, 100
local dx, dy = 200, 150
local radius = 20
function love.update(dt)
x = x + dx * dt
y = y + dy * dt
if x - radius < 0 or x + radius > love.graphics.getWidth() then dx = -dx end
if y - radius < 0 or y + radius > love.graphics.getHeight() then dy = -dy end
end
function love.draw()
love.graphics.circle("fill", x, y, radius)
endLOVE2D (LÖVE) is a free, open-source framework for 2D game development using Lua, focusing on simplicity, rapid prototyping, and cross-platform desktop and mobile deployment.
Origin & Creator
LOVE2D was created by Rafael 'Hoelzro' Lima in 2006, designed to make 2D game development accessible, fast, and flexible with Lua scripting.
Industrial Note
LOVE2D is widely used in indie game jams, rapid prototyping, educational coding projects, and hobbyist 2D game development due to its simplicity and lightweight framework.