Green Whistle
Craft Your Tools, Build Your World
Created on 25th April 2025
•
Green Whistle
Craft Your Tools, Build Your World
The problem Green Whistle solves
-
The core experience of our web-based RPG game is that it merges pixel-art gameplay with blockchain tech. Built with Next.js and Phaser.js, the game invites players into a living, breathing 2D world where their actions shape the universe.
-
At the core is the Monad testnet, handling all transactions with efficiency and transparency. We use ERC-20 for in-game currency and ERC-721 for unique NFT assets. Players can gather resources, craft tools, and own everything they create or discover.
-
To make blockchain interaction seamless, the game integrates Base for wallet access and OnChainKit with smart wallets, enabling smooth onboarding and fast on-chain operations.
-
Players explore an open-world pixel art map filled with trees, rocks, bushes, and other resources. Players must gather, craft, and survive using the materials found around them. Inventory slots allow players to collect and manage items. Make the character stand behind any collectible resource. Players need to place items in the hotbar through the inventory to use them.
-
We leverage Groq's capabilities provide real-time advice and feedback to players based on their actions along with AI generated NFTs.
-
The Marketplace lets users buy, sell, and trade items and NFTs in a decentralized economy. Every transaction is secure, transparent, and player-driven. Want to upgrade your inventory or collect rare artifacts? The marketplace is your hub.
-
Crafting plays a key role in gameplay. The Recipes section lets players view how to create tools, gear, and consumables using raw materials found in-game. Recipes are predefined and serve as guides—showing exact ingredients needed to forge an item from scratch.
-
With a dynamic world, blockchain-powered ownership, and a thriving in-game economy, our project blends immersive gameplay with real-world value—giving players the freedom to create, trade, and live their own adventure.
Challenges we ran into
One major challenge we faced was layer optimization. During initial builds, the number of active layers while running the game increased to 1556, due the the heightShift assigned to the layers extending far beyond expected limits. This led to longer loading times and noticeable lag during gameplay. Managing rendering performance and memory became a priority. We solved this by merging tiles with the same heightShift into fewer layers which reduced the number drasctically to 257, greatly improving load speed and runtime performance.
The integration of smart contracts posed another hurdle. If a player buys or sells something in the marketplace, the changes are required to be instantly reflected in both their inventory and wallet. Achieving real-time syncing between the blockchain state and the game client required careful design of event listeners, and backend checks to ensure no mismatch between the game state and wallet balances.
Tracks Applied (3)
Groq track
Groq
Monad Track
Monad
Base Track
Base

