Chainville

An on-chain city builder game that leverages blockchain technology to create a decentralized and immersive urban development experience.

  • 0 Raised
  • 264 Views
  • 0 Judges

Gallery

Description

CHAINVILLE

ChainVille is an on-chain city builder game that leverages blockchain technology to create a decentralized and immersive urban development experience. Players can acquire, develop, and manage virtual districts, engaging in various aspects of city planning and management.

Key Features

District acquisition and management

Infrastructure development

Resource management

District merging for expansion

Blockchain-based ownership and transactions

Gameplay

Objective

Get more points by building a virtual city.


How to play

Connect your wallet on base sepolia with the game for transactions.

Purchase a district.

Build your city by constructing various structures and infrastructure.

Update city state as you develop and grow your district.

Optionally, sell a district for any amount you choose.

Process Flow

User Interaction: Players interact with the game through a front-end interface.

Smart Contract Execution: User actions trigger smart contract functions (e.g., acquireDistrict, updateDistrictState).

Event Emission: The smart contract emits events (e.g., DistrictAcquired, DistrictStateUpdated).

Event Indexing: An indexer  Subsquid captures and processes these events.

Database Storage: Processed events are stored in a database for efficient querying.

Client State Update: The front-end updates based on the latest blockchain state and indexed events.

Neighbor Awareness: Players can observe and interact with neighboring districts.

Technical Stack

Frontend

TypeScript

3D Rendering

React

Vite

Backend

Solidity

Hardhat

Subsquid

Contract Address: 0x4f259F00EFa16dB2e20CC6C7D1f2B0719f63ecc5

subsquid endpoint: https://92b4fce6-8879-4e64-9ae5-56c20f27f8ef.squids.live/transactions-example/v/v1/graphql

Future Work

Enhanced Infrastructure Placement

Implement a more sophisticated system for structural updates and placement

Introduce zoning regulations and city planning mechanics

Expanded District Types


Parks/Recreation (🌳)

City Planning (🗺️)

Community Services (🤝)

Environmental Management (♻️)

Advanced Gameplay Mechanics


Player Collaboration (👥): Allow players to form alliances and work on joint projects

Trade Center (🔄): Implement a marketplace for resources and district trading

Improved Resource Management

Introduce more complex resource chains and interdependencies

Implement dynamic resource pricing based on supply and demand

Enhanced Visualization

Develop 3D models for districts and buildings

Implement real-time rendering of city changes

Governance Mechanism

Introduce voting systems for city-wide decisions

Attachments