raylib-Kollision und Spielregeln
Übersetzt geometrische Überschneidungen in Treffer, Sammelaktionen und Schaden. Trennt Kontaktbeginn von anhaltender Berührung und sorgt für sicheres Entfernen von Objekten während der Aktualisierung.
raylib-collision-gameplay
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill bei doppelten Effekten oder während der Verarbeitung verschwindenden Objekten.
Wobei hilft er dir?
- Wählt Kollisionsprüfungen passend zur tatsächlichen Objektzahl.
- Unterscheidet Kontaktbeginn von dauerhafter Überlappung.
- Behandelt Erzeugen und Entfernen ohne ungültige Iteration.
Das könntest du fragen
In unserem Asteroidenspiel zerlegt eine Rakete einen Felsen in drei Teile. Prüfe zwei gleichzeitige Treffer und anhaltenden Schiffskontakt mit einem Fragment. Die Zerstörung zählt einmal, Schaden hält das vorgesehene Intervall ein und Entfernen überspringt keine anderen Objekte.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
raylib — collision gameplay
Use when building raylib collision checks, simple spatial queries or stable gameplay rules.
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
Define broadphase needs from actual object counts, then choose available primitive checks. Keep collision detection, response and damage/reward state separate. Specify overlap entry versus persistent contact and protect iteration when objects spawn or disappear.
Deliver
A collision/rules module with clear units, ownership and event semantics. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
A geometric overlap helper is not a complete rigid-body solver; deleting while iterating can skip or invalidate entities.
Acceptance scenario
Exercise simultaneous hits, fast projectiles, multiple pickups and despawning the colliding object during event handling. 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
