BATTLE BLITZ WP
  • Disclaimers
  • BATTLE BLITZ
  • Team
  • Partners
  • GAMEPLAY
    • Participation
      • Free to Play
  • Game Modes
  • Mechanics
    • Blitz Battlegrounds
    • Stats
    • Leveling & Ranking Systems
  • ECONOMY
    • $BLITZ Token
      • Tokenomics
      • Gaming Insurance
  • NFT Implementation
  • Guilds and Schorlarships
  • Fighters
  • Weapons
  • LORE
    • Blitz Universe
  • The Human Race
  • Other Races
Powered by GitBook
On this page
  • Fighter Stats & Battle Calculations
  • Why Some Data Is Stored Off-Chain
  • Smart Contract Optimization

NFT Implementation

Battle Blitz Fighters will be implemented using the ERC-721 standard. This standard was chosen because each Fighter is a 1/1 unique token with a distinct combination of traits, making every Fighter one of a kind.

Weapons, on the other hand, will use the ERC-1155 standard, allowing multiple copies of the same weapon to exist, and introducing durability mechanics, meaning weapons can wear out and need repairs.

All Battle Blitz smart contracts will be deployed on the Ethereum mainnet to ensure maximum visibility, compatibility, and ease of use across popular crypto wallets and NFT marketplaces. This makes it easier for players (especially those new to NFTs) to interact with their Fighters and gear seamlessly.

Entry Requirements

Some game modes will require players to own at least one Battle Blitz Fighter NFT at the time of battle. Ownership verification happens on-chain through our smart contract, which tracks every Fighter’s owner. Once verified, the game retrieves the player’s entire NFT inventory, including Fighters and partnered collection assets, allowing players to choose which Fighter they want to bring into battle.


Fighter Stats & Battle Calculations

Battle Blitz is designed to appeal to both collectors, who value rarity and traits and gamers, who focus on performance in battle.

To strike this balance, Fighter stats are hidden from players. You’ll need to fight and experiment to discover how strong your Fighters are, and how they perform against certain opponents, weapons, and armor types.

This is inspired by systems like ZED RUN, where the true strength of an NFT is only revealed through gameplay, not visible metadata. However, in Battle Blitz, player skill also plays a key role. A powerful Fighter helps, but your strategy and reflexes can make all the difference.

Why Some Data Is Stored Off-Chain

1. Fluid Gameplay Experience

Since Battle Blitz features real-time, skill-based combat, running the entire game directly on-chain would create serious lag and performance issues. Unlike turn-based games (like Axie Infinity) or fully-simulated games (like ZED RUN), Battle Blitz requires constant inputs from players, so we prioritize smooth gameplay over full decentralization.

The core gameplay logic and calculations happen off-chain, with battle results recorded to the blockchain asynchronously to keep things fast and fluid.

2. Flexibility for Future Updates

Storing battle logic off-chain also allows faster updates and balance adjustments, ensuring the game can evolve and improve over time based on player feedback and new content.

3. Fairness Across Collections

Since Battle Blitz plans to support cross-collection battles, keeping all Fighter stats hidden ensures that players using Battle Blitz Fighters don’t have an unfair advantage over those using partnered collection assets. Everyone discovers their Fighters’ potential through gameplay not metadata.

4. Reduced Gas Fees

If every single battle was fully on-chain, gas fees would skyrocket, especially given the complexity of Battle Blitz’s real-time mechanics. By keeping the actual battles off-chain and only recording essential results on-chain, we keep costs low while maintaining a fair and secure system.


Smart Contract Optimization

Our development team has applied gas-saving techniques learned from successful projects like Cool Cats to ensure Battle Blitz contracts are as efficient as possible.

For example, functions are ordered so that the most frequently used functions are near the top, reducing gas consumption when they’re called.

We’ve also streamlined basic math operations in the smart contracts. Since the total supply and mint limits are well within safe ranges, we’ve removed unnecessary SafeMath operations and replaced them with direct arithmetic, reducing gas costs without compromising safety.

Example optimized code:

uint256 currentSupply = totalSupply();
require(
    currentSupply + numFighter <= MAX_FIGHTER - _reserved,
    'All fighters have been summoned'
);

This replaces heavier SafeMath calls, ensuring Battle Blitz’s minting process is as cost-efficient as possible.

PreviousGaming InsuranceNextGuilds and Schorlarships

Last updated 3 months ago