Skip to content

Commit

Permalink
Merge pull request #9 from BoomDAO/staging
Browse files Browse the repository at this point in the history
Latest stable
  • Loading branch information
h1teshtr1path1 authored Mar 4, 2024
2 parents 1bf008e + a514e72 commit 33c4392
Show file tree
Hide file tree
Showing 26 changed files with 6,150 additions and 1,480 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/mops-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: mops test

on:
push:
branches:
- main
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18

- name: install moc
run: npx mocv use latest

- name: install mops
run: npm i ic-mops -g

- name: install mops packages
run: mops install

- name: run tests
run: mops test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ dist/

# csharp files
csharp/

.mops
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

## WORLD TEMPLATE

The **World Template** is a ready-to-go template to launch your **World** canister smart contract manually and have it running on Day 1. A **World** serves as the command center, aka the "server backend" of your game, regulating the logic and rules governing your game economy. However, it's important to note that it doesn't store any data. It connects to the **World Engine** to store user data in a universal database.
The **World Template** is a ready-to-go template to launch your **World** canister smart contract manually and have it running on Day 1. A **World** serves as the command center, aka the "server backend" of your game, regulating the logic and rules governing your game economy. It connects to the **World Protocol** to store user data in a universal database.

You can download this World Template code if you would like to write your own custom logic for your **World** and deploy it yourself. You can write custom logic in the form of **Action Plugins** that enable you to add bespoke functionality to your World in a modular and reusable way.
You can download this World Template code if you would like to manually write your **World** yourself.

If you don't need custom logic, you can easily deploy a vanilla **World** canister on the [Game Launcher](launcher.boomdao.xyz) website, configure your World's rules directly from the website, download the [Unity Template](https://github.com/BoomDAO/unity-template) and edit it to call your World canister, and upload your Unity game client build to the website. Boom. You now have a fully on-chain game.
However, we recommend deploying a **World canister** on the [Game Launcher](launcher.boomdao.xyz) website. This way your World canister will get automatically upgraded with any new changes from BOOM DAO. From the Game Launcher website you can deploy/configure your World, download the [Unity Template](https://github.com/BoomDAO/unity-template) and edit it to call your World canister, and upload your Unity game client build to the website. Boom. You now have a fully on-chain game.

## TECH DOCUMENTATION

Expand Down
3 changes: 2 additions & 1 deletion canister_ids.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"world": {
"ic": "wseh6-daaaa-aaaap-abmfa-cai"
"guilds": "6ehny-oaaaa-aaaal-qclyq-cai",
"ic": "ovowh-wiaaa-aaaap-qca4q-cai"
}
}
11 changes: 9 additions & 2 deletions dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@
},
"defaults": {
"build": {
"args": "",
"packtool": ""
"args": ""
}
},
"networks": {
"guilds": {
"providers": [
"https://icp0.io"
],
"type": "persistent"
}
},
"output_env_file": ".env",
"version": 1
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"name": "world_template_frontend",
"version": "0.1.0",
"description": "Internet Computer starter application",
"keywords": ["Internet Computer", "Motoko", "JavaScript", "Canister"],
"keywords": [
"Internet Computer",
"Motoko",
"JavaScript",
"Canister"
],
"scripts": {
"build": "webpack",
"prebuild": "npm run generate",
Expand Down
Loading

0 comments on commit 33c4392

Please sign in to comment.