Skip to main content
LUA
SkillFreeBy GameSkill · tuned

LÖVE (Love2D) Core

/love2d-core

Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop, delta-time movement, input, and screen states.

License
Apache-2.0
By
By GameSkill
Download ZIP

Part of

Awesome Gamedev Agent Skills

77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.

Tested by GameSkill

31/31 checks passed on LÖVE 11.5 (2026-10-30): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

What this skill does

When it triggers

Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop, delta-time movement, input, and screen states. Use when building a LÖVE 11.x game (main.lua, conf.lua, .love).

GameSkill's tested copy

GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.

Download tested ZIP (24 KB)Roadmap: Engine basics

License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

LÖVE (Love2D) Core

Self-check

  • 所有移动都乘 dt,速度按像素每秒算 / Scale every movement by dt; speed is in pixels per second
  • `love.conf` 必须放在 `conf.lua`,放 `main.lua` 里不会生效 / Put love.conf in conf.lua; in main.lua it never runs
  • 11.x 颜色是 0–1,旧代码的 0–255 要用 `love.math.colorFromBytes` / Colors are 0–1 in 11.x; use `love.math.colorFromBytes` for byte values
  • `setColor` 是全局的,画文字和图片前重置成 `(1,1,1)` / Color state is global: reset setColor to (1,1,1) before text and images
  • 按住键只触发一次 `love.keypressed`,需要重复就调 `setKeyRepeat(true)` / Held keys fire `love.keypressed` once; call `setKeyRepeat(true)` if you need repeats

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/love2d-core/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/love2d-core.zip -o /tmp/gameskill-love2d-core.zip
unzip -oq /tmp/gameskill-love2d-core.zip -d .claude/skills
rm /tmp/gameskill-love2d-core.zip

What you get

  • Worked steps: main.lua skeleton; Frame-rate independence; conf.lua; Color is 0–1 in LÖVE 11.x
  • A pitfalls section with the mistakes to avoid
  • Bundled 1 reference doc the agent reads when needed
  • Written for LÖVE 11.x

Good fit

  • Building a LÖVE 11.x game (main.lua, conf.lua, .love)

Try this prompt

Prompt
Structure my LÖVE game with screen states and frame-rate-independent movement.

About this skill

Structure and debug a LÖVE (Love2D) game in Lua: the love.load/update/draw loop, delta-time movement, input, and screen states. Use when building a LÖVE 11.x game (main.lua, conf.lua, .love).

From the love2d-core SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.

What's inside

  • main.lua skeleton (the callback loop + input)
  • Frame-rate independence (the single most common bug)
  • conf.lua (window + version; runs before main.lua)
  • Color is 0–1 in LÖVE 11.x (not 0–255)
  • Screen states (brief — full manager in references)

Requirements

  • LÖVE 11.x

FAQ

MATCHED PRO KIT$8.25/mo

AI 2D Asset & Sprite Pipeline Kit

Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.

  • FFmpeg colorkey + despill frame extraction builder
  • 0px foot-root anchor packer (zero character float or jitter)

Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

More from Awesome Gamedev Agent Skills

See all 45

Similar skills