Skip to content

Greenwhistle is a blockchain-based game. The core experience of our web-based RPG game is that it merges pixel-art gameplay with blockchain tech.

License

Notifications You must be signed in to change notification settings

navyarathore/Greenwhistle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

github-submission-banner

πŸš€ Greenwhistle

Craft Your Tools, Build Your World, Live the Adventure.


πŸ“Œ Problem Statement

Problem Statement 2 – Unleash Blockchain Gameplay with Monad


🎯 Objective

Greenwhistle is a blockchain-based game that solves the problem of engaging gameplay with real ownership in the web3 space. It serves both casual gamers looking for accessible blockchain experiences and crypto enthusiasts seeking meaningful in-game economies.

Our game provides a fully immersive farming and crafting experience where every item, tool, and land plot can be owned as an NFT and traded in a decentralized marketplace. By leveraging Monad's high-throughput blockchain, we overcome traditional blockchain gaming issues like slow transaction processing and high gas fees, making microtransactions viable and gameplay seamless.

The real-world value comes from creating a digital economy where players can earn through skillful gameplay, trading, and resource management - all while enjoying an engaging gaming experience without the technical barriers typically associated with blockchain applications.


🧠 Team & Approach

Team Name:

XLR8

Team Members:

Your Approach:

  • Why we chose this problem: We were inspired by the potential of integrating blockchain technology into gaming in a way that feels natural rather than forced. We saw an opportunity to create an immersive experience, while addressing the performance limitations that have held back blockchain gaming.

  • Key challenges we addressed:

    • Creating a responsive game experience while maintaining blockchain integration
    • Balancing game mechanics with tokenomics
    • Developing a marketplace that's intuitive for non-crypto users
    • Optimizing smart contracts for Monad's high-throughput environment
    • Implementing seamless wallet connections with Base's OnChainKit
  • Pivots and breakthroughs during hacking:

    • Initially planned for a survival game but pivoted to a farming/crafting focus afterwards
    • Breakthrough in implementing asynchronous blockchain calls that don't interrupt gameplay
    • Simplified our marketplace UI after user testing revealed confusion points
    • Discovered a more efficient approach to on-chain storage of game saves

πŸ› οΈ Tech Stack

Core Technologies Used:

  • Frontend:
    1. Next.js
    2. TailwindCSS
    3. Framer Motion
  • Backend:
    1. Solidity
    2. Ether.js
    3. Monad Blockchain Network
  • API:
    1. Groq
  • Game Development:
    1. Phaser
    2. Grid Engine
  • Wallet Integration:
    1. Base OnChainKit
  • Hosting:
    1. Vercel

Sponsor Technologies Used (if any):

  • βœ… Monad: Your blockchain implementation
  • βœ… Base: AgentKit / OnchainKit / Smart Wallet usage
  • βœ… Groq: How you used Groq
  • Fluvio: Real-time data handling
  • Screenpipe: Screen-based analytics or workflows
  • Stellar: Payments, identity, or token usage

✨ Key Features

  • βœ… Immersive Blockchain Game Experience: A farming/crafting game where players can build their virtual world
  • βœ… Decentralized Marketplace: Players can trade resources, tools, and NFTs in a decentralized marketplace powered by smart contracts
  • βœ… High-Performance Gaming on Monad: Utilizing Monad's high-throughput blockchain to enable smoother gameplay
  • βœ… Simplified Onboarding with Base Integration: Using Bases's OnChainKit for seamless wallet connection and management
  • βœ… Resource Gathering & Crafting: Implementing a comprehensive system where players can gather resources in the game world and craft tools, items, and structures
  • βœ… Firendly Groq Agent: Implemented an agent powered by Groq

Alt Text Alt Text Alt Text Alt Text Alt Text Alt Text

Green Whistle Playthrough

Alt Text


πŸ“½οΈ Demo & Deliverables


βœ… Tasks & Bonus Checklist

  • βœ… All members of the team completed the mandatory task - Followed at least 2 of our social channels and filled the form (Details in Participant Manual)
  • βœ… All members of the team completed Bonus Task 1 - Sharing of Badges and filled the form (2 points) (Details in Participant Manual)
  • βœ… All members of the team completed Bonus Task 2 - Signing up for Sprint.dev and filled the form (3 points) (Details in Participant Manual)

πŸ§ͺ How to Run the Project

Requirements:

  • Node.js
  • Yarn package manager

Contract Deployment

#start local blockchain
cd packages/hardhat
yarn chain

#deploy contarcts in new terminal
yarn deploy

Local Setup:

# Clone the repo
git clone https://github.com/navyarathore/greenwhistle

# Install dependencies
cd greenwistle/packages/nextjs
yarn install

# Start development server
yarn dev

Navigate to https://localhost:3000 in your browser


🧬 Future Scope

List improvements, extensions, or follow-up features:

  1. Multiplayer Features

    • Implement real-time player interaction
    • Add cooperative farming and crafting mechanics
    • Create player guilds and shared land ownership
    • Social features like trading chat and friend lists
  2. Enhanced Game Mechanics

    • Seasonal events and weather effects
    • Advanced farming mechanics with crop diseases and fertilizers
    • More complex crafting recipes and rare items
    • Quest system with on-chain achievements
  3. Economic Improvements

    • Implementation of lending/borrowing for in-game assets
    • Automated Market Maker (AMM) for stable resource pricing
    • Governance token for community-driven game decisions
  4. Technical Enhancements

    • Layer 2 scaling solution integration for even faster transactions
    • Cross-chain bridge support for multi-chain asset transfers
    • Mobile-responsive game client
    • Advanced anti-cheat mechanisms
    • Performance optimizations for larger player base
  5. Community Features

    • DAO for game governance decisions
    • Community marketplace fee sharing
    • Player-created content system
    • Regular community events and competitions

πŸ“Ž Resources / Credits

  • Scaffold-ETH 2
  • Phaser Game Framework
  • Grid Engine Plugin
  • OnChainKit by Base
  • TailwindCSS/DaisyUI
  • Monad Blockchain
  • OpneZeppelin Contracts
  • Framer Motion

🏁 Final Words

Our hackathon journey creating Greenwhistle has been an incredible learning experience for our team. We encountered several challenges along the way, particularly in integrating Phaser's game engine with blockchain transactions in a way that maintains smooth gameplay. The most difficult aspect was designing a system where on-chain actions like NFT minting and marketplace transactions felt natural within the game flow rather than interrupting the experience.

We learned valuable lessons about designing smart contracts optimized for gaming, balancing on-chain and off-chain data storage, and creating intuitive UIs for blockchain interactions. The experience strengthened our skills in full-stack development, blockchain implementation, and game design.

Some memorable moments included our late-night debugging session that turned into an impromptu brainstorming about in-game economics, and the excitement we felt when we first successfully traded a crafted tool on our marketplace from one wallet to another.


About

Greenwhistle is a blockchain-based game. The core experience of our web-based RPG game is that it merges pixel-art gameplay with blockchain tech.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •