Phaser-fizika és ütközések
A választott Phaser-fizikához igazítja a mozgást, ütközést és tárgyfelvételt. Ellenőrzi a testalakokat és ismételt érintkezéseket, hogy egy találkozás ne okozzon több játékmeneti hatást.
phaser-arcade-matter-physics
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha platform vagy lövedék nem a látható alak szerint viselkedik.
Miben segít neked?
- Megfelelő Arcade- vagy Matter-működést és mértékegységet választ.
- Szinkronizálja a testet, eltolást és ütközési csoportot.
- Megakadályozza az ismételt átfedési eseményből származó dupla sebzést.
Például ezt kérheted
Az oldalnézetes játékomba tegyél mozgó platformot, tüskéket és felvehető drágakövet. Vizsgáld a több képkockán át tartó érintkezést és a kő melletti újraindítást: a sebzés kövesse a várakozási időt, a kő egyszer pontozzon, az ütközőtest illeszkedjen a képhez.
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
Phaser — arcade matter physics
Use when implementing Phaser movement, collision, triggers, platforms or physics configuration.
Version and project gate
Inspect Phaser major version, package lock, scene registry, renderer, scale configuration, Arcade/Matter plugins, loaders, animation keys and deployment base path. Phaser 2 States, Phaser 3 Scenes and newer APIs are not interchangeable. 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
Choose Arcade for the actual simple-body requirements or keep Matter when rigid-body behavior requires it. Declare world units, body offsets and collision categories. Distinguish overlap notifications from collision response and align static bodies after level changes. Use the installed world-step timing.
Deliver
A physics choice with body/filter settings and one reproducible gameplay obstacle course. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
A scaled sprite and its body can diverge; overlap callbacks must not award damage or pickups more than intended.
Acceptance scenario
Exercise corners, one-way platforms, fast projectiles and a restarted level at varied render rates. 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 Kip. 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.
- https://docs.phaser.io/phaser/concepts/scenes
- https://docs.phaser.io/api-documentation/class/scene
- https://github.com/phaserjs/phaser/blob/master/skills/physics-arcade/SKILL.md
Task-specific official references
Csomagban lévő fájlok 1
SKILL.md
