gamestate-module
OfficialControl game states, pause and resume gameplay
Software Engineering#unity#pause-resume#gamestate#messagepipe#time-scale#reactive-properties#gameplay-flow
Authorpunkfuncgames
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Coordinating game state transitions, pause/resume behavior, and time scaling across systems can be error-prone and scattered; this Skill centralizes state management, ensures consistent timeScale handling, and broadcasts state events so systems remain synchronized.
Core Features & Use Cases
- Centralized game state enum and service that exposes the current and previous state as reactive properties.
- Automatic timeScale management: paused or game over sets timeScale to zero, other states set timeScale to one.
- Event publishing via local reactive subjects and global MessagePipe brokers for state changes, pause, and resume events.
- Typical use cases: toggling pause from UI, gating gameplay logic to only run when playable, reacting to level start/end, and persisting or reverting state transitions.
Quick Start
Change the current game state to Paused to freeze gameplay, set timeScale to zero, and publish pause events to subscribers.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gamestate-module Download link: https://github.com/punkfuncgames/tetris-clone/archive/main.zip#gamestate-module Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.