phalanx-ecs

Create deterministic game logic with an Entity-Component-System architecture in the Phalanx Engine.

3|1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/phaeton2040-AI/phalanx-engine --skill phalanx-ecs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: phalanx-ecs
Source: https://github.com/phaeton2040-AI/phalanx-engine/tree/main/skills/phalanx-ecs
Command: npx skills add https://github.com/phaeton2040-AI/phalanx-engine --skill phalanx-ecs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a robust Entity-Component-System (ECS) architecture for building deterministic, lockstep multiplayer game logic, ensuring consistent game states across all clients.

Core Features & Use Cases

  • Deterministic Game Loop: Implement game logic that runs identically on all clients using a tick-based system.
  • Component Design: Choose between IComponent for simple data and SoAComponent for high-performance, cache-friendly data structures.
  • System Management: Organize game logic into modular, reusable systems that communicate via an event bus or direct calls.
  • Use Case: Develop a real-time strategy game where unit movement, combat, and resource gathering are synchronized precisely across all players, preventing desync issues.

Quick Start

Use the phalanx-ecs skill to create a GameWorld with a tick rate of 60 and register a basic movement system.

Frequently Asked Questions about phalanx-ecs

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

FAQPage Schema
How do I build deterministic lockstep multiplayer game logic using ECS?▼

You can build deterministic lockstep game logic using an Entity-Component-System architecture by registering modular systems and managing components within a tick-based GameWorld to ensure consistent state synchronization across clients.

What is the difference between IComponent and SoAComponent for entity management?▼

IComponent is used for simple data attachment to entities, whereas SoAComponent provides high-performance, cache-friendly data structures optimized for intensive game loops requiring efficient memory access.

How do game systems communicate in a deterministic ECS architecture?▼

Game systems communicate by dispatching and listening to events through a centralized EventBus, or by executing direct calls to other registered systems to coordinate deterministic game tick updates.

Does deterministic game logic require fixed-point arithmetic to prevent desync?▼

Yes, deterministic game logic requires fixed-point arithmetic to prevent floating-point inconsistencies across different client hardware, ensuring lockstep multiplayer synchronization remains perfectly aligned.

Can I synchronize entity queries directly with PhalanxClient for multiplayer sessions?▼

Yes, you can integrate deterministic entity queries with PhalanxClient to synchronize game state across multiplayer sessions, ensuring that all connected clients process the same tick data identically.