677 words
3 minutes
Cantina Royale Tools
VincenzoImp
/
cantinaroyale.tools
Waiting for api.github.com...
00K
0K
0K
Waiting...

๐ŸŽฎ About Cantina Royale#

Cantina Royale is a competitive battle royale game featuring NFT characters and weapons. This tools website provides detailed information about:

  • Character Collections: Genesis Space Apes and Cantina Royale Heroes
  • Weapon Collections: Arsenal X Weapons, Mythical Weapons, and Standard Weapons
  • Game Statistics: Character skills, weapon stats, upgrade paths, and reward pools

โœจ Features#

๐Ÿ” NFT Explorer#

  • Character Browser: Explore all character NFTs with detailed stats and attributes
  • Weapon Browser: Browse weapon collections with performance metrics
  • Search Functionality: Find specific NFTs by identifier
  • Collection Filtering: Filter by rarity, level, and other attributes

๐Ÿ“Š Game Data Analytics#

  • Character Skills: Ultimate abilities, charging mechanics, and stat progressions
  • Weapon Statistics: Damage values, ranges, and upgrade paths
  • Reward Pools: Lootbox contents and drop rates
  • Battle Pass Data: Season rewards and progression systems

๐ŸŽจ Modern UI/UX#

  • Responsive Design: Optimized for desktop and mobile devices
  • Dark Mode Support: Toggle between light and dark themes
  • Smooth Animations: Powered by Framer Motion
  • Interactive Charts: Data visualizations with Chart.js

๐Ÿ› ๏ธ Tech Stack#

Frontend#

Animations & Visualization#

Development Tools#

๐Ÿš€ Getting Started#

Prerequisites#

  • Node.js (version 18 or higher)
  • npm, yarn, pnpm, or bun package manager

Installation#

  1. Clone the repository

    git clone https://github.com/VincenzoImp/cantinaroyale.tools.git
    cd cantinaroyale.tools
  2. Install dependencies

    npm install
    # or
    yarn install
    # or
    pnpm install
    # or
    bun install
  3. Run the development server

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    # or
    bun dev
  4. Open in browser Navigate to http://localhost:3000 to see the application.

Build for Production#

npm run build
npm start

๐Ÿ“ Project Structure#

cantinaroyale.tools/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/                    # Next.js App Router
โ”‚   โ”‚   โ”œโ”€โ”€ collection/         # Collection pages
โ”‚   โ”‚   โ”œโ”€โ”€ nft/               # Individual NFT pages
โ”‚   โ”‚   โ”œโ”€โ”€ globals.css        # Global styles
โ”‚   โ”‚   โ”œโ”€โ”€ layout.tsx         # Root layout
โ”‚   โ”‚   โ”œโ”€โ”€ page.tsx           # Home page
โ”‚   โ”‚   โ””โ”€โ”€ providers.tsx      # Context providers
โ”‚   โ””โ”€โ”€ components/            # React components
โ”‚       โ”œโ”€โ”€ collection/        # Collection browsers
โ”‚       โ”œโ”€โ”€ nft/              # NFT detail components
โ”‚       โ”œโ”€โ”€ footer.tsx        # Footer component
โ”‚       โ””โ”€โ”€ navbar.tsx        # Navigation component
โ”œโ”€โ”€ public/
โ”‚   โ””โ”€โ”€ data/                  # Static data files
โ”‚       โ”œโ”€โ”€ CRHEROES-9edff2/   # Heroes collection
โ”‚       โ”œโ”€โ”€ CRWEAPONS-e5ab49/  # Weapons collection
โ”‚       โ”œโ”€โ”€ CRMYTH-546419/     # Mythical weapons
โ”‚       โ”œโ”€โ”€ GSPACEAPE-08bc2b/  # Genesis Space Apes
โ”‚       โ””โ”€โ”€ info.json          # App configuration
โ”œโ”€โ”€ private/
โ”‚   โ””โ”€โ”€ game_data/             # Game statistics & data
โ”‚       โ”œโ”€โ”€ Character.Skills.Stats.csv
โ”‚       โ”œโ”€โ”€ RewardPool.csv
โ”‚       โ””โ”€โ”€ Lootboxes.Info.csv
โ””โ”€โ”€ package.json

๐ŸŽฏ Key Features in Detail#

NFT Collections Support#

  • Genesis Space Apes (GSPACEAPE-08bc2b) - The original Cantina Royale character collection
  • Cantina Royale Heroes (CRHEROES-9edff2) - Second generation characters with unique abilities
  • Cantina Weapons (CRWEAPONS-e5ab49) - Weapon NFTs with gameplay bonuses
  • Mythical Weapons (CRMYTH-546419) - Rare legendary weapons with unique play modes

Game Data Integration#

  • Character Ultimate Skills: Detailed breakdown of each characterโ€™s special abilities
  • Weapon Statistics: Damage values, ranges, and special effects
  • Upgrade Paths: Progression systems for characters and weapons
  • Reward Systems: Lootbox contents and probability distributions

Dynamic Search & Filtering#

  • Search NFTs by exact identifier
  • Filter collections by multiple criteria
  • Sort by rarity, level, stats, and other attributes
  • Real-time results with responsive UI

๐Ÿ”ง Configuration#

Environment Variables#

Create a .env.local file for environment-specific settings:

# Example environment variables
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=https://api.multiversx.com

Data Sources#

  • NFT metadata is stored in public/data/ directory
  • Game statistics are in private/game_data/ directory
  • Configuration is managed through public/data/info.json

๐Ÿค Contributing#

We welcome contributions to improve Cantina Royale Tools!

Development Guidelines#

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Style#

  • Follow TypeScript best practices
  • Use ESLint configuration provided
  • Maintain consistent formatting with Prettier
  • Write descriptive commit messages

๐Ÿ“Š Data Structure#

NFT Collections#

Each collection follows a standardized structure:

{
  "collection": "COLLECTION-ID",
  "name": "Collection Name",
  "ticker": "TICKER",
  "holderCount": 142,
  "nftCount": 3028,
  "assets": {
    "website": "https://cantinaroyale.io",
    "description": "Collection description"
  }
}

Character Skills#

Character abilities are defined with level-based progression:

Character,Skill,Level1,Level2,...,Level10,Scaling
FreeCharacter3,ultimateskill_charging_duration,90,90,...,90,1.0
FreeCharacter3,ultimateskill_9lives_healthPercentage,25,30,...,80,1.0

๐Ÿš€ Deployment#

This project is optimized for deployment on Vercel:

  1. Connect your GitHub repository to Vercel
  2. Configure build settings (auto-detected for Next.js)
  3. Deploy with automatic CI/CD

Alternative Platforms#

  • Netlify: Compatible with static export
  • Railway: Node.js hosting
  • Digital Ocean: VPS deployment

Social Media#

๐Ÿ“„ License#

This project is licensed under the ISC License. See the LICENSE file for details.


Made with โค๏ธ for the Cantina Royale community

Cantina Royale Tools
https://vincenzo.imperati.dev/posts/cantina-royale-tools/
Author
Vincenzo Imperati
Published at
2024-01-15