Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.75 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.75 KB
Dojo logo

discord Telegram Chat

Shard Dungeon

An example of a Dojo game that is a simple dungeon crawler using Saya for settlement and Katana sharding execution.

Quick start

# Build the project.
sozo build

# The world's address may change if dojo-core is modified. Please check the Scarb.toml
# and replace as necessary. If you don't know yet the world's address, comment it.
sozo migrate apply

# Register a player:
sozo execute shard_dungeon::systems::metagame::metagame register_player -c str:player1

# Run the dungeon:
sozo execute shard_dungeon::systems::hazard_hall::hazard_hall fate_strike

Architecture

The idea of the demonstration is to have a metagame on Starknet, where players can register and then start a dungeon. For now, the dungeon is single player.

The shard execution must start the dungeon run, the player has to interact with the shard to effectively finish beat the dungeon's boss.

Once the dungeon is over, Saya must have all the necessary info to update the world state on the base layer.