-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,13 @@ | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset=".github/mark-dark.svg"> | ||
<img alt="Dojo logo" align="right" width="120" src=".github/mark-light.svg"> | ||
</picture> | ||
# Overview | ||
|
||
<a href="https://twitter.com/dojostarknet"> | ||
<img src="https://img.shields.io/twitter/follow/dojostarknet?style=social"/> | ||
</a> | ||
<a href="https://github.com/dojoengine/dojo"> | ||
<img src="https://img.shields.io/github/stars/dojoengine/dojo?style=social"/> | ||
</a> | ||
The Cartridge Arcade is a plateform for building and distributing games on Starknet. | ||
|
||
[![discord](https://img.shields.io/badge/join-dojo-green?logo=discord&logoColor=white)](https://discord.gg/PwDa2mKhR4) | ||
[![Telegram Chat][tg-badge]][tg-url] | ||
## Key Features | ||
|
||
[tg-badge]: https://img.shields.io/endpoint?color=neon&logo=telegram&label=chat&style=flat-square&url=https%3A%2F%2Ftg.sumanjay.workers.dev%2Fdojoengine | ||
[tg-url]: https://t.me/dojoengine | ||
#### Achievements | ||
|
||
# Dojo Starter: Official Guide | ||
Players can earn achievements by progressing in games. | ||
|
||
The official Dojo Starter guide, the quickest and most streamlined way to get your Dojo provable game up and running. This guide will assist you with the initial setup, from cloning the repository to deploying your world. | ||
#### Profile (coming soon) | ||
|
||
Read the full tutorial [here](https://book.dojoengine.org/tutorial/dojo-starter). | ||
|
||
## Running Locally | ||
|
||
#### Terminal one (Make sure this is running) | ||
|
||
```bash | ||
# Run Katana | ||
katana --disable-fee --allowed-origins "*" | ||
``` | ||
|
||
#### Terminal two | ||
|
||
```bash | ||
# Build the example | ||
sozo build | ||
|
||
# Migrate the example | ||
sozo migrate apply | ||
|
||
# Start Torii | ||
torii --world 0x5d475a9221f6cbf1a016b12400a01b9a89935069aecd57e9876fcb2a7bb29da --allowed-origins "*" | ||
``` | ||
|
||
--- | ||
|
||
## Contribution | ||
|
||
This starter project is a constant work in progress and contributions are greatly appreciated! | ||
|
||
1. **Report a Bug** | ||
|
||
- If you think you have encountered a bug, and we should know about it, feel free to report it [here](https://github.com/dojoengine/dojo-starter/issues) and we will take care of it. | ||
|
||
2. **Request a Feature** | ||
|
||
- You can also request for a feature [here](https://github.com/dojoengine/dojo-starter/issues), and if it's viable, it will be picked for development. | ||
|
||
3. **Create a Pull Request** | ||
- It can't get better then this, your pull request will be appreciated by the community. | ||
|
||
Happy coding! | ||
Players can view their profile accross all registered games and track their progress. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Achievements | ||
|
||
The Cartridge Achievements is a system for games to reward players for completing achievements. | ||
|
||
## Key Features | ||
|
||
- **Packages**: Games can define achievements thanks to the provided packages. | ||
- **Rewards**: Games can reward players with Cartridge points for completing achievements. | ||
- **Profile**: Players can view their achievements and scores whitout leaving the game. | ||
|
||
## Benefits for Game Developers | ||
|
||
- **Simplicity**: Easy integration with existing Starknet smart contracts and Dojo. | ||
- **Cost-effectiveness**: Achievements are events based, no additional storage is required. | ||
- **Performance** (coming soon): Plugin attached to Torii to improve the performances of the achievements computation. | ||
|
||
## How It Works? | ||
|
||
### Creation | ||
|
||
The game world describes the achievements and the corresponding tasks to unlock them. | ||
Each achievement is defined by (not exhaustive) a unique `identifier`, a `title`, a `description` and a set of `tasks`. | ||
Each task is defined by an `identifier`, a `total` and a `description`. | ||
The completion of a task is done when enough progression has been made by a player regarding a specific task. | ||
The achievement is completed when all included tasks are completed. | ||
|
||
### Progression | ||
|
||
The progression of each individual task is done by the game by emitting events associated to a `task` and a `player`. | ||
Each progression provides a `counter` to add to the player progression. | ||
A task completion is the sum of all the progression events emitted for a specific `task` (defined by the `identifier`). | ||
|
||
### Integration | ||
|
||
The status of the achievement is computed off-chain by the controller, it starts when the controller is initialized on the client. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters