Skip to content

Klorenn/PixelKale

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฑ PixelKale - KaleCraft

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

๐ŸŽฎ Features

  • ๐ŸŒพ 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

๐Ÿš€ Getting Started

Prerequisites

  • Node.js 16+
  • npm or yarn
  • Stellar account with XLM for transaction fees
  • KALE tokens for farming (optional, can start with 0)

Installation

# Clone the repository
git clone https://github.com/Klorenn/PixelKale.git
cd PixelKale

# Install dependencies
npm install

# Start the development server
npm start

Configuration

  1. Set up your Stellar account:

    # Create a new account
    stellar keys generate --global player
    
    # Fund your account (testnet)
    stellar keys fund player --network testnet
  2. Configure the game:

    • Edit config/network.js to set your preferred network
    • Add your account details in config/account.js

๐ŸŽฏ Gameplay

Farming Process

  1. ๐ŸŒฑ Plant: Stake KALE tokens to start farming
  2. โ›๏ธ Work: Mine for blocks using proof-of-work
  3. ๐ŸŒพ Harvest: Collect your KALE rewards

Smart Contract Integration

The game integrates with the official KALE ecosystem contracts:

  • KALE Homestead (Mainnet): CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA
  • KALE Tractor: CBGSBKYMYO6OMGHQXXNOBRGVUDFUDVC2XLC3SXON5R2SNXILR7XCKKY3
  • KALE SAC Contract: CB23WRDQWGSP6YPMY4UV5C4OW5CBTXKYN3XEATG7KJEZCXMJBYEHOUOV
  • Testnet Contract: CDSWUUXGPWDZG76ISK6SUCVPZJMD5YUV66J2FXFXFGDX25XKZJIEITAO

๐Ÿ› ๏ธ Development

Project Structure

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

Available Scripts

# 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 simulation

๐Ÿ”ง Blockchain Integration

KALE Farm Contract

The 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);

Network Configuration

const NETWORKS = {
  testnet: {
    contractId: 'CDSWUUXGPWDZG76ISK6SUCVPZJMD5YUV66J2FXFXFGDX25XKZJIEITAO',
    assetCode: 'KALE',
    assetIssuer: 'GCHPTWXMT3HYF4RLZHWBNRF4MPXLTJ76ISHMSYIWCCDXWUYOQG5MR2AB'
  },
  mainnet: {
    contractId: 'CDL74RF5BLYR2YBLCCI7F5FB6TPSCLKEJUBSD2RSVWZ4YHF3VMFAIGWA',
    assetCode: 'KALE',
    assetIssuer: 'GBDVX4VELCDSQ54KQJYTNHXAHFLBCA77ZY2USQBM4CSHTTV7DME7KALE'
  }
};

๐ŸŽจ Art & Design

Pixel Art Style

  • 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

Themes

  • ๐ŸŒ… Day Theme: Bright, cheerful colors
  • ๐ŸŒ™ Night Theme: Dark, mysterious atmosphere
  • ๐ŸŒง๏ธ Weather Effects: Rain, snow, and seasonal changes

๐Ÿ“Š Tokenomics

KALE Token

  • 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

Game Economy

  • 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

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ”— Links

๐Ÿ™ Acknowledgments

  • 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

About

KaleCraft 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.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors