raylib-bevitel és kamera
A gombnyomást és mutatóhelyzetet világon belüli művelethez kapcsolja. Elválasztja a folyamatos mozgást az egyszeri parancstól, és figyelembe veszi a kamerát, menüt és képméretezést.
raylib-input-camera
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha zoom vagy nagy felbontás után pontatlan a kijelölés.
Miben segít neked?
- Elválasztja az egyszeri billentyűeseményt a folyamatos mozgástól.
- Világkoordinátára alakítja a kattintási helyet.
- Külön kezeli a felületi eseményt és framebuffer-méretezést.
Például ezt kérheted
Készíts egércélzást és billentyűs mozgást a felülnézetes íjászhoz. Mozgasd és nagyítsd a kamerát, tartsd a támadást, majd kattints egy felszereléshelyre. A célzás világpontra mutasson, a lövés kövesse az ismétlési szabályt, a menükezelés pedig ne lőjön át a felületen.
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
raylib — input camera
Use when implementing raylib input actions, screen/world conversion or 2D/3D cameras.
Version and project gate
Inspect The local raylib.h version, linked library, C/C++ build system, platform backend, asset paths, compile flags and ownership conventions. Match the cheatsheet to the linked version rather than assuming the current website API. 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
Separate pressed/released edges from held input and define the units of movement. Route screen positions through the active camera transform before hit testing. Keep UI capture and gameplay input distinct. Inspect high-DPI window/framebuffer dimensions on the chosen backend.
Deliver
An action/coordinate contract and one complete control/camera interaction. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Do not treat a key edge as a continuous action or use screen coordinates as world positions after camera zoom.
Acceptance scenario
Zoom and pan, resize the window, hold input while pausing and click the same world object at several camera positions. 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 Flint. 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
