In Omni Castles, players conquer castles across blockchains, using Skale’s gasless battles, Fhenix’s hidden armies with Acurast weather, and Rootstock’s Bitcoin-based morale. Control 70% of castles to be crowned Emperor—each requiring a unique strategy!
Omni Castles is a game where players must conquer and hold multiple castles across different blockchains. To be crowned Emperor, a player must control at least 70% - (Math.ceil(0.7 * number_of_castles)) of all castles. Each castle is built on a unique blockchain, utilizing its strengths to offer diverse gameplay experiences, requiring different strategies to conquer.
Skale Castle: This castle requires a massive army due to Skale's ability to handle large computations. Battles are complex and leverage Skale's built-in, gasless randomness. Skale’s scalability makes large-scale battles possible without gas costs.
Fhenix Castle: Utilizing Fully Homomorphic Encryption (FHE), this castle hides the defending army, forcing attackers to guess its composition based on previous battles. Acurast Oracle integrates real-time weather data, which affects battle outcomes.
AirDAO Castle: Built on a scalable blockchain with high transactions per second (TPS), battles are more resource-intensive than on Fhenix, though not as demanding as on Skale.
Rootstock Castle: Closely tied to the price of Bitcoin, the defending army's morale is affected by Bitcoin’s market performance, adding an economic twist to battles.
Here are the relevant Github repos:
This hackathon is just the start, we ran out of time before implementing a unifying leaderboard (using subgraph) and Near protocol for controlling other EVM chains.
In Omni Castles, we used a variety of technologies tailored to the strengths of different blockchains:
Skale: Leveraged Skale’s gasless techniques and built-in RNG for large-scale battles. This allowed us to run complex computations without incurring gas costs, which was crucial for smooth gameplay in army-heavy scenarios.
AirDAO: Integrated Acurast for oracles, bringing in real-time weather data to affect battles, and used decentralized keepers for automatic execution of tasks, ensuring the game ran autonomously without manual intervention.
Fhenix: Also utilized Acurast for weather oracles but added the twist of Fully Homomorphic Encryption (FHE) to hide defender states, requiring attackers to deduce defensive positions based on prior battles.
We initially planned to unify these castles using Near for cross-chain actions and Subgraph for leaderboard tracking, but ran out of time before completing those integrations. These would have enhanced the multi-chain functionality and tracking of player progress across all castles.
One of the more hacky aspects of Omni Castles is that neither AirDAO nor Fhenix had native oracle support before. This project is the first to introduce Acurast Oracles on these blockchains. Acurast’s Trusted Execution Environment (TEE) forwards Web2 API data, like weather conditions, directly to smart contracts with minimal trust overhead, making it a groundbreaking integration for decentralized gaming mechanics.