libGDX Box2D-játékmenet
A fizikai érintkezést játékszabályhoz kapcsolja, a világ veszélyes pillanatban módosítása nélkül. Elkülöníti a fizikai mértékegységet a képponttól, és kezeli az ismételt sebzés- vagy felvételeseményt.
libgdx-box2d-gameplay
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha ütközési visszahívások objektumot hoznak létre vagy törölnek, illetve a fizikai méretek elcsúsznak.
Miben segít neked?
- Elkülöníti a fizikai egységeket és testeket a látványtól.
- Zárolt ütközési visszahíváson kívülre sorolja a világmódosítást.
- Ismétlésbiztossá teszi az ütközési hatást és felszabadítja a pálya erőforrásait.
Például ezt kérheted
A platformjátékban a lezuhanó kő törjön össze egy ládát. Az eltávolítást az ütközési visszahíváson kívül hajtsd végre, egyszer hozz létre jutalmat, majd indítsd újra a pályát. A kép és test helye egyezzen, régi natív fizikai objektum ne maradjon.
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
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
Csomagban lévő fájlok 1
SKILL.md
