PixelKale is the first immersive blockchain agriculture experience on Stellar. Players cultivate, mine, and harvest KALE tokens while enjoying a modern pixel art interface with dynamic day/night themes. It combines real blockchain technology with an interactive and addictive farming game.
Inspired by Ben Wallet's ecosystem - Built on the same KALE infrastructure with enhanced gaming mechanics
- ๐พ Real Blockchain Farming: Interact with actual KALE smart contracts on Stellar
- ๐จ Pixel Art Interface: Modern, retro-inspired graphics with dynamic themes
- ๐ Day/Night Cycle: Dynamic visual themes that change throughout the day
- โ๏ธ Mining Mechanics: Proof-of-work style mining for KALE tokens
- ๐ฑ Cultivation System: Plant, grow, and harvest virtual crops
- ๐ฐ Token Rewards: Earn real KALE tokens through gameplay
- ๐ Stellar Integration: Built on the Stellar blockchain using Soroban smart contracts
- Node.js 16+
- npm or yarn
- Stellar account with XLM for transaction fees
- KALE tokens for farming (optional, can start with 0)
# Clone the repository
git clone https://github.com/Klorenn/PixelKale.git
cd PixelKale
# Install dependencies
npm install
# Start the development server
npm start-
Set up your Stellar account:
# Create a new account stellar keys generate --global player # Fund your account (testnet) stellar keys fund player --network testnet
-
Configure the game:
- Edit
config/network.jsto set your preferred network - Add your account details in
config/account.js
- Edit
- ๐ฑ Plant: Stake KALE tokens to start farming
- โ๏ธ Work: Mine for blocks using proof-of-work
- ๐พ Harvest: Collect your KALE rewards
The game integrates with the official KALE ecosystem contracts:
- KALE Homestead (Mainnet):
CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA - KALE Tractor:
CBGSBKYMYO6OMGHQXXNOBRGVUDFUDVC2XLC3SXON5R2SNXILR7XCKKY3 - KALE SAC Contract:
CB23WRDQWGSP6YPMY4UV5C4OW5CBTXKYN3XEATG7KJEZCXMJBYEHOUOV - Testnet Contract:
CDSWUUXGPWDZG76ISK6SUCVPZJMD5YUV66J2FXFXFGDX25XKZJIEITAO
PixelKale/
โโโ src/
โ โโโ components/ # React components
โ โโโ game/ # Game logic and mechanics
โ โโโ blockchain/ # Stellar/Soroban integration
โ โโโ assets/ # Images, sounds, sprites
โ โโโ utils/ # Helper functions
โโโ config/ # Configuration files
โโโ docs/ # Documentation
โโโ tests/ # Test files
# Development
npm start # Start development server
npm run build # Build for production
npm run test # Run tests
# Blockchain
npm run deploy # Deploy smart contracts
npm run fund # Fund test accounts
npm run farm # Run farming simulationThe game uses the official KALE Farm smart contract for all farming operations:
// Example usage
import { KaleFarmSDK } from './src/blockchain/kale-farm-sdk.js';
const sdk = new KaleFarmSDK('testnet');
await sdk.setAccount(publicKey, secretKey);
// Plant KALE
await sdk.plantKale(1000);
// Work on the farm
await sdk.workKale(nonce, hash);
// Harvest rewards
await sdk.harvestKale(farmIndex);const NETWORKS = {
testnet: {
contractId: 'CDSWUUXGPWDZG76ISK6SUCVPZJMD5YUV66J2FXFXFGDX25XKZJIEITAO',
assetCode: 'KALE',
assetIssuer: 'GCHPTWXMT3HYF4RLZHWBNRF4MPXLTJ76ISHMSYIWCCDXWUYOQG5MR2AB'
},
mainnet: {
contractId: 'CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA',
assetCode: 'KALE',
assetIssuer: 'GBDVX4VELCDSQ54KQJYTNHXAHFLBCA77ZY2USQBM4CSHTTV7DME7KALE'
}
};- 16x16 pixel sprites for characters and items
- Retro color palette inspired by classic farming games
- Smooth animations with pixel-perfect movement
- Dynamic lighting for day/night cycles
- ๐ Day Theme: Bright, cheerful colors
- ๐ Night Theme: Dark, mysterious atmosphere
- ๐ง๏ธ Weather Effects: Rain, snow, and seasonal changes
- Total Supply: 500M KALE (capped)
- Emission Rate: 500 KALE per minute
- Decay Rate: 5% monthly compounding
- Farming Rewards: Distributed based on stake, work, and timing
- Planting: Stake KALE tokens to start farming
- Mining: Use CPU power to generate valid hashes
- Harvesting: Collect rewards based on contribution
- Risk/Reward: Higher stakes = higher rewards but more risk
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Game: kalefarm.xyz
- Stellar Expert: View Contract
- Discord: Join the Community
- Twitter: @PixelKale
- KALE Farm Contract: kalepail/KALE-sc
- Ben Wallet Ecosystem: Ben Wallet Architecture for KALE infrastructure inspiration
- Launchtube API: launchtube.xyz for blockchain integration
- Stellar Foundation: For the amazing blockchain platform
- Community: All the farmers and developers who make this possible
Happy Farming! ๐ฑโ๏ธ๐พ
Built with โค๏ธ on Stellar