AUTO-BATTLE MINI-GAME

Mehdi BOUAZIZ
EMETH Project
Published in
4 min readDec 4, 2021

--

After selling the first batch of Golems, EMETH will launch a second mint on Sunday, December 19th.

A few days before, an auto-battle mini-game will be released to let the current Golem owners warm up and test their skills against each other. Especially as we now have Unions forming on Discord, it’ll be interesting to see how the battles between The Diamond Empire and The Obsidian Coalition will go down…

The mini-game is a piece of the final game to be released in February 2022.
A few modifications are currently being made to release the auto-battle as a standalone game where Golem owners face each other.

GAMEPLAY OVERVIEW

  • The game is browser-based
  • It’s a 1 versus 1 auto-battle game
  • The player connects to the game with Metamask
  • A scan is performed to check if the player owns one of our NFTs
  • If the player owns a Golem (our NFT), then he enters the game
  • The player chooses one of the 4 classes: Air, Water, Fire, or Earth
  • The player is given a random Golem from the chosen class
  • The Golem is a .json with metadata (attributes like head, shoulders, torso, etc) and a link to its 2D .png image
  • The player enters the queue
  • While waiting for his game, he can see the other players play
  • Once his turn arrives, his Golem appears on the fighting screen in front of the opponent’s Golem
  • The two players have 15 seconds to click on “ready to fight”
  • Once the battle starts, the Golem fight automatically
  • The player who wins has two choices:
    a. keep playing
    b. stop playing and cash out his reward (then go back at the end of the queue)
  • The player who loses goes back at the end of the queue

QUEUE

  • Max number of players in queue: 1,200
    (equal to the max number of Golems on the secondary market after the giveaways are airdropped, in case all of the Golems are sold to individual owners on the secondary market)
  • Expected average players in queue at any time: 100
  • When they connect and choose their class, all the players queue up
  • When it’s their turn to fight, they have 15 seconds to click on “ready to fight”
  • If they don’t click on “ready to fight” before the countdown ends, then they go back to the bottom of the queue, and a new player enters the fight from the queue.
  • If a player forfeits (doesn’t click on “ready to fight”), the other player doesn’t win
  • The player who clicked on “ready to fight” waits for another player to join the battle
  • If two players forfeit at the same time (neither of them clicks on “ready to fight”), then they both go back to the end of the queue
  • The game runs 24/7
  • If there are no players in queue, the game waits for a player to join the queue
  • If there is only 1 player in the queue, he needs to click on “ready to fight” then waits for someone to join

AUTO-BATTLE MECHANIC

  • Each Golem is based on a metadata .json file.
  • This metadata is a list of attributes:
    “attributes”: [
    {
    “trait_type”: “Class”,
    “value”: “FIRE”
    },
    {
    “trait_type”: “Head”,
    “value”: “Scorching Helmet I”
    },
    {
    “trait_type”: “Jaw”,
    “value”: “”
    },
    {
    “trait_type”: “Horns”,
    “value”: “Scorching Crown I”
    },
    {
    “trait_type”: “Torso”,
    “value”: “Scorching Cuirass I”
    },
    etc… ]
  • These attributes are converted into battle stats
  • Each Golem has 4 battle stats:
    a. Health Points (HP)
    b. Attack (ATT)
    c. Defence (DEF)
    d. Speed (SPD)
  • The rarer the attributes, the stronger the battle stats
  • The auto-battle is a loop that runs until one of the golems dies (HP to zero)
  • Each turn, a Golem attacks randomly between 50% and 100% of its ATT stat
  • The opponent defends between 50% and 100% of its DEF stat
  • The Golems attack with a specific frequency based on the SPD stat
  • So sometimes, a Golem will attack twice in a row
  • Classes matter: Fire beats Air beats Earth beats Water beats Fire
  • A class advantage gives 25% bonus ATT to the Golem
  • Each attack deals damage (DMG)
  • DMG = ATT(Golem1) — DEF(Golem2)
  • If DMG is negative, then 0 HP is lost by Golem2
  • If DMG is positive, then Golem2 loses HPs (the amount of DMG)
  • The battle screen prints dynamically the series of attacks and defenses to let the players know what’s going on in the fight

REWARDS (subject to change)

  • Every time a player wins a battle, he chooses:
    a. continue playing
    b. stop and cash out the reward (then go back to queue)
  • Each successively won battle gives +1 MATIC to the player
  • If the player manages to win 20 battles in a row, he receives a free Golem NFT (airdropped)
  • If the player loses one of the battles before cashing out, then he loses everything and doesn’t get the rewards

DISCORD

ULTRA RARE FIRE GOLEM

If you want to see more sneak peeks of the Golems, visit our discord:

discord.gg/emeth

--

--