Ring Universus is an infinite on-chain universe of concentric Rings.
In this boundless expanse, the universe is structured into infinite concentric Rings, each possessing unique attributes, biomes, and rules. Commanders act as explorers, traversing the infinite void to claim Stations, discover powerful Artifacts, and restore order by neutralizing Entropy Points.
The universe is a battleground between Flux (Flow) and Entropy (Stasis).
- The Rings: Experience an infinite procedural universe where each layer (Ring) offers distinct challenges and resources.
- Exploration: Venture outward or inward through the Rings to uncover the hidden secrets of the cosmos.
Flux is the fundamental unit of energy in the universe. It represents "flow" and dynamic potential.
- Usage: Exploration consumes Flux. It is the fuel that powers your journey through the Rings.
Stations (formerly Nodes) are the foothold of a Commander in the void.
- Function: These are claimable/tradeable land plots found within the Rings. A Station serves as a base for operations and resource generation.
Artifacts (formerly Modules) are remnants of ancient technology or natural wonders found during exploration.
- Function: Equip Artifacts to enhance your exploration capabilities or combat strength.
Crystals are rare enhancements formed from condensed Flux or compressed Entropy.
- Function: Crystals can be socketed into Stations or Artifacts to unlock special abilities or boost stats.
Entropy Points (formerly Singularities) are manifestations of static chaos—the absolute opposite of Flux.
- Mechanic: Where Flux is moving energy, Entropy is dead silence. Players can discover these anomalies and repair them.
- Reward: Fixing an Entropy Point restores flow to the region and yields valuable rewards.
This project is built as a modular and upgradeable system using the Diamond Standard (EIP-2535).
- Modular Architecture: Fully compliant with EIP-2535, allowing endless expansion of game logic without hitting contract size limits.
- Optimized for Evolution: Game mechanics (Facets) can be added, updated, or replaced transparently.
- Viem & Hardhat: Built for speed and developer experience.
pnpm installCreate a .env file in the root directory and add your private key and provider URLs:
PRIVATE_KEY=your_private_key
RPC_URL=your_rpc_urlnpx hardhat compileBefore deploying or upgrading, run the selectors task to update the function map:
npx hardhat selectorsDeploys the Diamond contract along with the standard facets and core game facets.
npx hardhat run scripts/deploy.ts --network <your-network>The upgrade script automatically detects changes in your facets (e.g., new game mechanics) and prepares a diamondCut transaction.
npx hardhat run scripts/upgrade.ts --network <your-network>Ring Universus utilizes EIP-2535 to ensure the game can evolve forever.
- Facets: Independent contracts that implement specific game logic (e.g.,
ExplorationFacet,StationFacet). - Diamond: The central game contract.