libGDX-Box2D-Spielabläufe
Verbindet physische Kontakte mit Spielregeln, ohne die Physikwelt im falschen Moment zu verändern. Trennt Welteinheiten von Sprite-Pixeln und schützt Schaden oder Sammeln vor wiederholten Rückrufen.
libgdx-box2d-gameplay
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze ihn bei Objektänderungen aus Kollisions-Callbacks oder unpassendem physikalischem Maßstab.
Wobei hilft er dir?
- Trennt physikalische Einheiten und Körper von sichtbaren Sprites.
- Verschiebt Weltänderungen aus gesperrten Kontakt-Callbacks.
- Sichert wiederholte Kontakte ab und gibt native Levelressourcen frei.
Das könntest du fragen
Lass im Plattformer einen fallenden Felsen eine Kiste zerstören. Führe das Entfernen außerhalb des Kontakt-Callbacks aus, erzeuge die Belohnung einmal und starte das Level neu. Sprite und Körper stimmen überein; die alte Welt hinterlässt keine nativen Physikobjekte.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
libGDX — box2d gameplay
Use when integrating libGDX Box2D bodies, contacts, joints or gameplay collisions.
Version and project gate
Inspect Gradle wrapper and modules, libGDX/backend versions, Java toolchain, ApplicationListener/Game/Screen structure, AssetManager ownership, viewport policy, native libraries and supported desktop/mobile/web targets. 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
Confirm the wrapper/native version, units and fixed-step owner. Keep visual sprites separate from bodies and queue world mutations outside locked contact callbacks. Turn contacts into idempotent gameplay events. Dispose World and associated native data with the level.
Deliver
A body/contact ownership map and a reproducible obstacle or combat scenario. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Do not destroy a body inside a locked Box2D callback or treat pixel coordinates as sensible physical units.
Acceptance scenario
Trigger simultaneous contacts, despawn an object from a contact and reset the level without stale body references. 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 Keiko. 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.
Task-specific official references
Enthaltene Dateien 1
SKILL.md
