Emoji Man is a game based on Rock-Paper-Scissors (RPS) mechanics where players spawn as one of the following: a Rock 🪨, Paper 📄, or Scissors ✂️. The goal is to survive and thrive using the classic RPS rules.
To begin, install Dojo using the following command:
curl -L https://install.dojoengine.org | bash
After installation, run this command to set up:
dojoup
This will install the latest stable release of the Dojo tool suite, currently version v0.3.15
.
For a foundational start, clone the Dojo starter project:
git clone https://github.com/dojoengine/dojo-starter
Clone the Emoji Man project:
git clone https://github.com/dojoengine/emoji-man
The initial steps include:
- a. Project initialization
- b. Exploring the project structure
- c. Understanding Scarb
- d. Introduction to Cairo
Develop your first model by:
- a. Conceptualizing the model structure
- b. Creating a model and understanding state structures, with insights on ECS
- c. Learning how Dojo is not purely ECS-based
This involves:
- a. System creation as a contract
- b. Adding a new system
- c. Building and testing with
sozo
Proceed by:
- a. Adding a new model
- b. Implementing a new trait
- c. Utilizing the trait in a system
- d. Building and verifying the integration
Delve deeper into:
- a.
sozo
functionalities - b. Launching
katana
- c. Setting up
torii
and connecting to your World
Refer to the documentation for sozo
, katana
, and torii
.
Focus on:
- a. Refining and organizing the code
Conduct tests by:
- a. Establishing a testing structure
- b. Writing and executing World deployment tests
Learn about:
- a. Deployment processes and debugging techniques
Steps include: -a. Launching the client
- b. Generating models via npm
- c. Understanding client architecture
- d. Learning about the
torii
client
Understand slot and its applications. Install slot
and log in with these commands:
curl -L https://slot.cartridge.sh | bash
slotup
slot auth login
# For old auth credentials debug:
rm ~/Library/Application\ Support/slot/credentials.json
Deployment steps:
# Create and manage deployments
slot deployments create emoji-man-demo katana
# Retrieve and save credentials
slot deployments logs emoji-man-demo katana -f
# Build and migrate releases
sozo --release build
sozo --release migrate
# Set up torii and connect to the world
slot deployments create emoji-man-demo torii --rpc https://api.cartridge.gg/x/emoji-man-demo/katana --world 0x1fad58d91d5d121aa6dc4d16c01a161e0441ef75fe7d31e3664a61e66022b1f --start-block 1
# Update authentication for the release
./scripts/default_auth.sh release
Deploy to vercel.
- Add a way to spawn collectables on the map and allow players to collect them
- Add UI in client to show total amount of killed types.