raylib-Eingabe und Kamera
Verbindet Tasten und Zeigerpositionen mit Aktionen in der Spielwelt. Trennt gehaltene Bewegung von einmaligen Befehlen und berücksichtigt Kamera, Menüeingaben und Bildpufferskalierung.
raylib-input-camera
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill bei ungenauer Auswahl nach Zoom oder auf hochauflösenden Fenstern.
Wobei hilft er dir?
- Trennt einmalige Tastensignale von kontinuierlicher Bewegung.
- Rechnet Bildschirmpositionen vor Weltobjektprüfungen um.
- Trennt Oberflächensteuerung und Spiel und prüft Framebufferskalierung.
Das könntest du fragen
Baue Mausziel und Tastaturbewegung für unseren Top-down-Bogenschützen. Verschiebe und zoome die Kamera, halte Angriff und klicke einen Inventarplatz. Zielen folgt der Weltposition, Schüsse folgen der Wiederholregel und Inventarklicks schießen nicht durch das Menü.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
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.
Enthaltene Dateien 1
SKILL.md
