MonoGame-Schleife und Zustände
Trennt Spielaktualisierung vom Zeichnen, damit die Bildfrequenz keine Regeln verändert. Definiert Einstieg, Ausstieg und Pause für Menü, Spiel und Ergebniszustände.
monogame-game-loop-states
Entdecke, wie der Skill hilftWann ist der Skill hilfreich?
Nutze diesen Skill bei bildratenabhängigem Verhalten oder doppelten Aktionen.
Wobei hilft er dir?
- Prüft feste Zeitschritte und verwendete Zeiteinheiten.
- Hält Bewegung und Punkte in Updates statt Zeichenaufrufen.
- Definiert Eintritt, Austritt und Pause von Zuständen.
Das könntest du fragen
Baue Menü-, Renn-, Pausen- und Ergebniszustände für unser Kartspiel. Ändere während einer Runde Fenstergröße und Zeichenfrequenz. Rundenzeit und Punkte folgen Simulationsupdates, Pause hält vorgesehene Systeme an und ein neues Rennen setzt nur rundenspezifische Daten zurück.
Ausführliche Dokumentation
Hier findest du die ursprüngliche Anleitung, Beispiele und Prüfschritte des Skills in ihrer Originalsprache.
Weniger anzeigen
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.
Enthaltene Dateien 1
SKILL.md
