Inspiration

We drew major inspiration from India's rich history of dynasties - kings after kings ruling major parts of the country, fighting or collaborating while developing. No war has ever been won without wit and that's what you are gonna need to win this game.

What it does

In this 2-player arena game, each side has a king belonging to one of a few classes. The king is symbolized by NFT-count. A random (symmetrical) map is generated at the start of each game and each block can belong to one of several classes - Magma, Stone,... with varying amounts of resources - Iron or Diamonds. Players choose where to move each soldier for 15 rounds and soldiers mine resources using technology while also challenging the opponent's soldiers if on the same block. The player with the most diamonds wins.

How we built it

We started with Phaser, a lightweight JS game library that allows custom sprites and animations as well. We used socket.io to configure the game's networking. The backend uses simple NodeJS code to allow both sides to interact while the frontend, written in vanilla JS, users Phaser to display the board every round and interact with the user to know intended moves.

Challenges we ran into

Major challenges include building the time loop for the game so that users don't have to wait for the entire duration of 15 seconds if they have selected their moves. Also, linking the sprites to our Javascript classes was a bit tiresome.

Accomplishments that we're proud of

  1. Being able to complete the game in a matter of a few days
  2. The unique idea of an arena game with simple user interaction but still interesting to play

What we learned

We learnt about Phaser and NFT-minting for the first time while some members got to know about Socket. Overall, the experience was rich and most of all, we learnt how to collaborate to streamline workflow in small teams.

What's next for Conquer Every Block

Future developments include -

  1. Allowing people to build their own blocks and challenge other users for games in custom maps.
  2. Allowing users to mint their own kings with specific soldier features and make them available at a certain token cost.
Share this project:

Updates