fs-gg-game-core

Simulate deterministic game logic with collision detection and seeded random numbers.

Updated Jul 6, 2026
One-click install
npx skills add https://github.com/FS-GG/FS.GG.Game --skill fs-gg-game-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fs-gg-game-core
Source: https://github.com/FS-GG/FS.GG.Game/tree/main/template/product-skills/fs-gg-game-core
Command: npx skills add https://github.com/FS-GG/FS.GG.Game --skill fs-gg-game-core

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the simulation of game logic, providing deterministic loops, random number generation, and collision detection capabilities without the need for complex external libraries.

Core Features & Use Cases

  • Deterministic Simulation: Ensures that game state progresses predictably, allowing for accurate replays.
  • Random Number Generation: Offers a seeded random number generator for game scenarios requiring unpredictability.
  • Collision Detection: Provides tools for detecting and responding to collisions between game entities.
  • Use Case: Utilize this Skill to implement a game where entities move within a defined space, interact, and respond to player inputs, such as a platformer or a 2D fighter.

Quick Start

Create a new game by initializing the simulation environment and setting up the game's initial state.

Frequently Asked Questions about fs-gg-game-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement deterministic game logic for accurate replays?

Deterministic game logic requires a fixed timestep simulation and a seeded random number generator to ensure predictable state progression. This approach allows game states to progress consistently, enabling accurate replays without desynchronization across different runs.

What is a seeded random number generator used for in game development?

A seeded random number generator provides consistent sequences of random values for game scenarios requiring unpredictability. Using a specific seed ensures that non-deterministic elements reproduce identically during replays or debugging sessions.

How do I add collision detection between entities in a 2D game space?

Collision detection identifies and responds to interactions between entities moving within a defined space. It provides the necessary tools to detect overlapping hitboxes and trigger appropriate response behaviors for entities in platformers or 2D fighters.

Do I need external libraries to build a 2D platformer or fighter simulation?

You do not need complex external libraries to simulate game logic. This capability provides deterministic loops, random number generation, and collision detection directly, streamlining development for genres like 2D platformers or fighters.

Why does my deterministic simulation break or desynchronize during gameplay?

Deterministic simulation breaks when the fixed timestep is not maintained or random numbers are unseeded. Proper handling of random numbers for non-deterministic elements and strict timestep adherence are required to prevent desynchronization.

Can I use this simulation approach for games requiring player input handling?

Yes, this simulation approach applies to games where entities move within a defined space, interact, and respond to player inputs. It handles consistent, predictable behavior and interactions between entities for interactive game scenarios.