LÖVE-grafika és koordináták
Összehangolja a világpozíciót, ablakpixelt és köztes rajzfelület koordinátáját. Rétegek között visszaállítja a rajzolási állapotot, hogy a kamera vagy shader ne csússzon át a kezelőfelületre.
love-graphics-coordinates
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha nagyított látvány és egércélzás eltér.
Miben segít neked?
- Külön koordinátatereket és fordított bemeneti transzformációt határoz meg.
- Kiegyensúlyozza a vászon-, árnyaló- és színállapot-váltást.
- Ellenőrzi az átméretezést, fekete sávokat és verziófüggő megjelenítést.
Például ezt kérheted
A pixelgrafikus kalandban alacsony felbontású vászonra rajzold a világot, fölé a párbeszédet. Méretezz fekete sávos ablakra, és kattints mozgó karakterre. A kijelölés fordítsa vissza a világtranszformációt, a szöveg pedig maradjon helyes pozícióban, a világ shaderétől függetlenül.
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 — graphics coordinates
Use when implementing LÖVE cameras, Canvas rendering, shaders, scaling or high-DPI output.
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
Define game coordinates, window coordinates and internal render resolution separately. Balance push/pop and reset canvas/shader/color/blend state at owned boundaries. Convert input through the inverse presentation transform. Match color ranges and shader language to the installed version.
Deliver
A render/coordinate contract and a scoped visual feature that preserves later drawing state. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
A scaled Canvas does not automatically scale mouse coordinates; leaked color or shader state can tint unrelated UI.
Acceptance scenario
Resize, letterbox, zoom and draw a HUD after an effect while clicking the same world target. 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
