LÖVE-visszahívások és játékállapotok
Egységes állapotfolyamba szervezi az indulást, frissítést, rajzolást és bemenetet. A mozgást függetleníti a kirajzolástól, és meghatározza a szünetben vagy váltáskor elfogyasztott műveleteket.
love-callbacks-state
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha újraindítás vagy szünet képkockafüggő hibát hoz.
Miben segít neked?
- Egy gazdához rendeli az indulási, frissítési, rajzolási és bemeneti visszahívást.
- Kis, következetes modulfelületen kezeli az állapotokat.
- Másodpercalapú időzítést és szünetelt bemenetkezelést határoz meg.
Például ezt kérheted
A Lua-platformjátékhoz készíts főmenü-, játék-, szünet- és vereségállapotot. Tartsd az ugrást a szünet megnyitásakor, méretezd az ablakot, majd folytasd. Ne legyen dupla ugrás, rajzoláskor ne nőjön pontszám, újraindításkor pedig tűnjön el az előző kör ideiglenes állapota.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
LÖVE — callbacks state
Use when implementing LÖVE callbacks, Lua game states, pause or restart.
Version and project gate
Inspect conf.lua and main.lua, LÖVE and Lua/LuaJIT versions, callback definitions, modules, filesystem identity, graphics/audio APIs, .love packaging and native extension dependencies. Distinguish color/API conventions across major releases. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Keep initialization, update, drawing and input callbacks under one explicit owner. Dispatch state behavior through a small module contract, preserving existing project style. Declare seconds-based timing and pause semantics; customize love.run only when the ordinary loop cannot satisfy the requirement.
Deliver
A callback/state map and complete menu-play-pause-restart behavior. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Updating gameplay during draw or replacing a callback accidentally through a module import can make behavior frame-dependent.
Acceptance scenario
Restart repeatedly, pause with input held and compare a timed movement sequence at varied render rates. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Lilt. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Csomagban lévő fájlok 1
SKILL.md
