Skip to content

eviterin/TheGate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Gate

A fully onchain deck-building roguelike game on HappyChain🤠 where players battle through encounters using strategic card play and deck building.

Key Features:

  • Fully Onchain Gameplay: All game logic, encounters, and rewards exist on the blockchain
  • Deck Building: Collect cards and build powerful combinations as you progress
  • Strategic Combat: Plan your moves carefully to overcome increasingly difficult enemies
  • HappyWallet🤠: Create a wallet seamlessly using social logins (like Gmail)
  • Session Keys: Authorize the game to play without signing transactions - powered by HappyChain🤠

The Gate demonstrates how complex game mechanics can be implemented entirely onchain while maintaining an engaging user experience. The client is theoretically optional - all game state and logic live on HappyChain.

Setup Chainy

The contracts in Chainy need to be deployed before the client can run. Follow the instructions in the chainy README.

Setup Clientv

Follow the instructions in the client README.

Architecture

The Gate uses a hybrid architecture with a clear separation between on-chain and client-side data:

On-Chain Data

  • Core game mechanics (damage values, health, mana costs)
  • Game state (player health, deck composition)
  • Win conditions and rules

Client-Side Data

  • Visual elements (card art, animations)
  • UI positioning (enemy placement on screen)
  • Sound effects and visual feedback

Shared data files in the shared directory serve as a single source of truth, with automatic integration for both the client and deployment scripts. Read more about why this separation matters in the shared README.

About

Mammothon Hackathon 2025 Submission

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published