MonoGame-ciklus és állapotok
Elválasztja a játékfrissítést a kirajzolástól, hogy a képkockasebesség ne módosítsa a szabályokat. Meghatározza a menü, játék és lezárás belépési, kilépési és szünetviselkedését.
monogame-game-loop-states
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha képkockasebességtől változik a játék vagy ismétlődnek a műveletek.
Miben segít neked?
- Ellenőrzi a fix időlépést és időegységeket.
- Frissítésben tartja a mozgást és pontszámítást.
- Meghatározza az állapotbelépést, kilépést és szüneteltetést.
Például ezt kérheted
A gokartjátékhoz készíts menü-, verseny-, szünet- és eredményállapotot. Egy kör közben méretezd az ablakot és változtasd a kirajzolást. Az időmérés és pontozás szimulációból haladjon, a szünet a kijelölt rendszereket állítsa le, új verseny pedig csak a körfüggő adatot nullázza.
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
MonoGame — game loop states
Use when implementing MonoGame Update/Draw, game states, pause or timing.
Version and project gate
Inspect Project and .NET target, MonoGame package/backend, Game loop settings, MGCB files/tool versions, content root, GraphicsProfile, platform libraries and existing screen/state architecture. 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
Read IsFixedTimeStep and TargetElapsedTime. Keep simulation changes in Update and presentation in Draw; account for multiple updates between draws. Define state entry/exit and pause behavior, and use the appropriate elapsed time units consistently.
Deliver
A timing/state contract and complete menu-play-pause-restart slice. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
Do not mutate score or movement in Draw or assume each Update has a matching Draw.
Acceptance scenario
Simulate a slow update, pause/resume and replay the same timed inputs without frame-dependent duplicate actions. 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 Mox. 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.
Csomagban lévő fájlok 1
SKILL.md
