Lands

Overview

Lands are the primary units of ownership and interaction on the 20x20 isometric map grid. Each land can be occupied, put on sale, or purchased by players. Lands also have unique bonuses that players can collect and use strategically for resource generation within the game.

Land Structure and Attributes

Each land tile has specific attributes that define its utility and player interactions:

  • Occupancy Status: Indicates whether a land is occupied by a player or available for occupation.

  • Occupant: The wallet address of the player occupying the land

  • Sale Status: Shows if a land is currently listed for sale by its owner, and only the landowner can set or remove it from sale.

  • Bonus Type: Each land provides a resource bonus that contributes to in-game advantages. Bonuses are categorized as follows:

    • 1: Food

    • 2: Wood

    • 3: Stone

    • 4: Iron

  • Coordinates: Each land has a fixed coordinate on the map grid, allowing players to locate and interact with it precisely.

Land Visuals

To easily distinguish between occupied, available, and specific player lands, different visual markers are used:

  • Default Land: The default appearance of unoccupied lands is lined-grid.

  • Flags: Indicator flags are used to mark land status:

    • White Flag: Shows unoccupied but interactive lands.

    • Sky Blue Flag: Highlights lands occupied by the current player for easier navigation and interaction.

Bonuses on Lands

Each land has a predefined bonus type, which is essential for resource collection and development:

  • Bonus Resources: The resource type (Food, Wood, Stone, Iron) is assigned based on the land’s position. Players collect these resources for strategic gameplay.

  • Bonus Retrieval: Right-clicking on a land displays its resource bonus, allowing players to plan strategic occupations based on resource needs.

Land Interactions

Lands have multiple interaction options depending on their status:

  1. Occupying Land:

    • Players can occupy available lands by selecting them and optionally inputting a referrer address, which benefits the referring player.

    • The referrer bonus is credited for future benefits when a referred player occupies land for the first time.

  2. Setting Land for Sale:

    • A player occupying land can set it for sale, allowing others to purchase it. Only the current landowner can initiate this action.

  3. Purchasing Land:

    • Players can purchase a land listed for sale by another player, transferring ownership and occupancy status to the buyer.

Ownership and Referrals

Lands also include an integrated referral system, encouraging community growth and rewarding players:

  • Referral Input: Players can input a referrer’s address when occupying land for the first time.

  • Referral Links: Each player can generate a custom referral link to share with others, gaining bonuses when new players occupy land using their referral.

Technical Details of Land Management

Lands are managed on the blockchain, allowing for secure ownership transfer and interaction logging:

  • Smart Contract Integration: Lands are stored in a smart contract where their occupancy, sale status, and owner details are recorded.

  • MetaMask Authentication: Players connect via MetaMask for land interactions, allowing for secure and decentralized land ownership management.

Last updated