Monster Hunter
⚠️ Legacy (Dubhe v1). This tutorial uses the old
schemas/SubscriptionKind.SchemaAPI and predates Dubhe v2 (resourceswithDappStorage/UserStorage). Some text also mistakenly references EVM/anvil — Dubhe targets Sui Move. For the current workflow, start with the Quick Start and the ECS reference. Kept for reference pending a rewrite.
By the end of this tutorial you will learn how to create your own onchain application using Dubhe. This will help you understand how Dubhe works and how it can be used to build any other Move application or onchain game.
We will also be exploring the ECS model, a software architectural pattern used commonly in video game development.
Learning goals
The MonsterHunter tutorial is a crash course in everything Dubhe but it is a particularly good resource for learning how to build onchain games using ECS. You can expect to learn the following:
- Onchain game development using the ECS model.
- How to declare resources in
dubhe.config.ts, interact with them using systems, and call them from the client. - Querying onchain data from the Dubhe Indexer.
- Deploying all of the above to a testnet.
You can expect your finished product to look something like this: