Building an NFT Web Game with Phaser and Loopring: Cave of Zombies

Blockchain Gaming

April 2023 Update

Cave of Zombies was accepted into the GameStop NFT Marketplace! Check out the NFT collection or visit the game’s website for more information.

Cave of Zombies is a 2D platforming web game that I first started building in 2014. The objective is simple: navigate a maze filled with zombies and other obstacles without touching anything. The game was first developed as a way for me to get experience building a complete project with Javascript using the Phaser game framework.

Last summer (2022) I decided to use the game as a case study for realizing the utility of non-fungible tokens in Web3 projects. I was intrigued by concept of token-gating web content by using an Ethereum wallet to prove ownership of assets without having to collect and store user information.

I took the following steps to build this idea out:

  • Wrapped the Phaser game code in a statically generated NextJS website
  • Integrated the Loopring Wallet API for NFT ownership verification using the GameStop wallet
  • Minted test NFTs on the Loopring layer 2 Ethereum network
  • Developed 3 campaigns that consist of 15 levels
  • Set up continuous deployment

The plan is to release additional campaigns that require verified NFT ownership via the GameStop wallet. Contact me if you are interested in getting an NFT access pass to help with alpha and beta testing.

Visit CaveOfZombies.com to play!
* Google Chrome and a GameStop Wallet are required

Early screenshots of the game in development: