Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Bao Zhiyuan committed Sep 18, 2024
1 parent 14452be commit e21bd5f
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/dist
node_modules
meta.json
data.json
test.mts
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 2024 年 MoonBit 全球编程创新挑战赛游戏赛道提交仓库

赛事详情与报名方式见:<https://tianchi.aliyun.com/s/42503d88fe6e219f3260251114461b54>

## 提交流程

1. 创建本仓库的 fork
1. 在 teams 文件夹下以自己的队伍名创建文件夹
1. 文件夹中至少包含以下文件:
- `game.wasm`: 编译后的游戏本体
- `README.md`: 游戏描述及说明
1. 提交 PR

## 提交文件及作用

除了上面提到的 `game.wasm``README.md` 以外,选手提交的文件夹还可以包含以下文件:

- `control`:utf-8 编码的文本文件,说明游戏的控制方法
- `title`:utf-8 编码的文本文件,游戏的标题
- `cover.png`:游戏封面图片,会在展示页面渲染

这些文件可以控制提交的游戏在展示页和详情页的渲染,具体作用如下图所示

![](./imgs/gallery.png)

![](./imgs/game.png)

## 如果你有任何问题,请在 issue 中提问
361 changes: 361 additions & 0 deletions dev/data.json

Large diffs are not rendered by default.

Binary file added imgs/gallery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imgs/game.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function getPrNumber(teamName: string): number {

async function collectMetaInfo(teamName: string): Promise<MetaInfo> {
const prInfo = process.env.DEV
? JSON.parse(fs.readFileSync('data.json', 'utf8'))
? JSON.parse(fs.readFileSync('dev/data.json', 'utf8'))
: await getPRInfo(teamName)

const metaInfo: MetaInfo = {
Expand Down
14 changes: 0 additions & 14 deletions teams/MoonBit官方样例1/LICENSE

This file was deleted.

0 comments on commit e21bd5f

Please sign in to comment.