romariokav.in
  • home
  • timeline
  • projects
  • travel
  • gallery
projects/1 BC · Jul 2024

GnomesAndKnights

Best infra on ApeChain

GnomesAndKnights, 1 of 4
hackathon
ETHGlobal Brussels
when
Jul 2024 · 1 BC
where
ETHBrussels · in person
won
  • Blockscout Best use of Blockscout Block Explorer
  • ApeCoin Best Infra project built on ApeChain
  • Worldcoin Pool Prize
made with
  • Ethereum
  • ApeChain
  • World ID
  • Blockscout
  • Dynamic
  • Solidity
  • TypeScript
  • Hardhat
  • Next.js
  • React
  • Tailwind
  • NFC
live demoshowcasesourceon the timeline

what it is

GnomesAndKnights: A Blockchain-Based Strategy Game

Project Description

GnomesAndKnights is an innovative blockchain-based strategy game that integrates cryptocurrency and smart contracts to offer a unique and secure gaming experience. Built on the concept of decentralized finance (DeFi), GnomesAndKnights leverages Apecoin, a popular cryptocurrency, to create a dynamic in-game economy and enhance player interactions.

Key Features

NFC Abstracted Wallet Integration: Players use an NFC abstracted wallet for seamless transactions within the game. This ensures a secure and user-friendly experience for handling Apecoin.

Apecoin Utilization: Players use Apecoin to create their characters, represented as gnomes or knights. Apecoin is wrapped into in-game points known as "Aura," which can be used for various activities within the game.

Random Item Distribution: The game employs a random generator to distribute items among players. This ensures a fair and unpredictable allocation of resources, enhancing the strategic element of the game.

Encrypted Board State Contract: The PHENIX Encrypted Board State Contract manages the game's state, ensuring secure and transparent gameplay. This contract handles the initialization of the game board, tracking of player actions, and enforcement of game rules.

Strategic Gameplay: Players engage in various activities, including duels with knights, teaming up with other players, and healing. The strategic use of Aura points and item management is crucial for success.

Respawn Mechanism: In the event of a player's death, they can respawn if they have zero Aura points, maintaining game continuity and offering a chance for recovery and comeback.

Gameplay Flow

  • Create Player with Apecoin: Players start by creating their characters using Apecoin.
  • Receive Aura Points: Apecoin is converted into Aura points for in-game use.
  • Random Item Distribution: Items are distributed randomly among players.
  • Initialize Game Board: The game board is set up for the players.
  • Engage in Duels: Players duel with knights and engage in other strategic actions.
  • Team Up and Heal: Players can connect with teammates to heal and strategize.
  • Respawn Mechanism: Players can respawn with zero Aura points, allowing them to re-enter the game.

Innovation and Impact

how it's made

How GnomesAndKnights is Made

GnomesAndKnights is a blockchain-based strategy game that leverages modern technologies to create an engaging, secure, and decentralized gaming experience. Here's an overview of how it's made:

Blockchain Integration

  • Smart Contracts: The core of GnomesAndKnights is built on smart contracts, specifically the PHENIX Encrypted Board State Contract. These contracts manage the game logic, ensuring transparency and security. They handle tasks like player creation, item distribution, game state management, and rule enforcement.
  • Cryptocurrency Utilization: Apecoin is used as the in-game currency. Players use Apecoin to create their characters and perform various in-game actions. Apecoin is wrapped into in-game points called "Aura," which can be spent on activities within the game.

NFC Abstracted Wallet

  • User-Friendly Transactions: An NFC abstracted wallet is integrated to handle all in-game transactions. This makes it easy for players to use Apecoin without dealing with complex blockchain addresses and transaction fees directly.
  • Secure Interactions: The NFC wallet ensures secure and seamless interactions, providing players with a smooth experience for buying, selling, and exchanging in-game items and points.

Game Mechanics

  • Random Item Distribution: A random generator algorithm is implemented to distribute items among players. This ensures a fair and unpredictable allocation of resources, adding a strategic layer to the game.
  • Game Board Initialization: The game board is initialized through the smart contract, setting up the environment where players interact and compete.
  • Duel Mechanics: Players can engage in duels with knights and other players. The outcomes and rewards of these duels are managed by the smart contract, ensuring fairness and transparency.
  • Team Dynamics: Players can team up with others to heal and strategize. The game supports cooperative gameplay, where connecting with teammates can provide strategic advantages.
  • Respawn System: A respawn mechanism is in place for when players die. If a player has zero Aura points, they can respawn, allowing for continuous gameplay and opportunities to recover and strategize anew.

User Interface and Experience

  • Front-End Development: The game's user interface is developed using modern web technologies like HTML5, CSS3, and JavaScript, ensuring a responsive and interactive experience.

nearby

  • blockchAInalso Ethereum, Dynamic
  • DeepTruthalso Ethereum, World ID
  • WrldMapalso World ID, Blockscout
  • Hide&Seekalso Ethereum, World ID
← earlierWeatherProoflater →Grand Nouns Auto