Skip to content

Commit

Permalink
update custom level guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Gzh0821 committed Dec 7, 2024
1 parent 0e13cb6 commit 46599ba
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 10 deletions.
22 changes: 14 additions & 8 deletions src/en/guide/level/levelguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pageInfo: false
comment: false
order: 1
---

> [!info]
> Go to the [Custom Level](/en/custom-level/) page to download sample level files!
Expand Down Expand Up @@ -72,7 +73,7 @@ In standard JSON, key names must be wrapped in double quotes, while in JSON5, ke
```json5
{
unquoted: 'This is allowed in JSON5',
'singleQuotes': "This is also allowed"
singleQuotes: 'This is also allowed'
}
```

Expand All @@ -83,7 +84,7 @@ In JSON5, you can add a comma after the last item of an object or array, which i
```json5
{
key: 'value',
anotherKey: 42, // Allow end of line comma
anotherKey: 42 // Allow end of line comma
}
```

Expand Down Expand Up @@ -111,7 +112,7 @@ JSON5 supports both single-quoted and double-quoted strings.
```json5
{
singleQuotes: 'This is a string',
doubleQuotes: "This is also a string"
doubleQuotes: 'This is also a string'
}
```

Expand All @@ -131,7 +132,7 @@ JSON5 supports more numeric formats, such as hexadecimal notation and positive a
```json5
{
decimal: 123,
hexadecimal: 0x7B,
hexadecimal: 0x7b,
infinity: Infinity,
notANumber: NaN
}
Expand All @@ -143,8 +144,8 @@ You can omit zeros in the integer part or the fractional part.

```json5
{
fractional: .5, // equivalent to 0.5
trailing: 2., // equivalent to 2.0
fractional: 0.5, // equivalent to 0.5
trailing: 2 // equivalent to 2.0
}
```

Expand Down Expand Up @@ -184,7 +185,10 @@ This field contains the following:
// Level UUID
"uuid": "c58a208a-a5e3-4cfa-9bc3-cc7fbb08c2e3",
// Level name
"name": "SampleLevel I",
"name": {
"en": "SampleLevel",
"zh-CN": "示例关卡"
},
// Level author
"Author": "LMYY",
// Optional, author link
Expand All @@ -194,6 +198,8 @@ This field contains the following:
"en": "This is a sample level.",
"zh-CN": "这是一个示例关卡。"
},
// Supported game version
"GameVersion": "0.1.1",
// Level version
"Version": "1.0",
// Level creation time
Expand Down Expand Up @@ -305,4 +311,4 @@ objects is a list whose elements are each specific level setting. There are mult
}
}
]
```
```
30 changes: 30 additions & 0 deletions src/en/guide/level/submitlevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Share and Contribute Levels
index: true
icon: share
pageInfo: false
comment: false
order: 2
---

> [!important]
> By sharing or contributing levels, you agree to the [Player Contribution Agreement](/instructions/Submisson).
>
You can download level files made by community members on the [Community Level](/custom-level/) page. If you have your own levels, you can share them with other players in the following ways:

## 1. Discord Server

You can share your level files on the `#custom-level-share` channel of the Discord server. Please follow the server rules.

To join the Discord server, please check the [User Community Page](/contribution/).

## 2. Submit to the Official Level Library

If your level is highly completed, you can submit it to the official level library. You need to have a Github account and be able to use Git tools.

For how to use Git, please refer to the [Official Development Guide](/guide/webGuide). Please note that the official Git repository is different from the level library.

The address of the official level library is: [pvzg_level](https://github.com/Gzh0821/pvzg_level).

Please refer to the Readme file of the official level library for detailed steps to submit a level.
7 changes: 6 additions & 1 deletion src/guide/level/levelguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ JSON5 支持更多的数值格式,比如十六进制表示法和正负无穷
// 关卡的UUID
"uuid": "c58a208a-a5e3-4cfa-9bc3-cc7fbb08c2e3",
// 关卡名称
"name": "SampleLevel I",
"name": {
"en": "SampleLevel I",
"zh-CN": "示例关卡1"
},
// 关卡的作者
"Author": "LMYY",
// 可选,作者的链接
Expand All @@ -191,6 +194,8 @@ JSON5 支持更多的数值格式,比如十六进制表示法和正负无穷
"en": "This is a sample level.",
"zh-CN": "这是一个示例关卡。"
},
// 关卡支持的游戏版本
"GameVersion": "0.1.1",
// 关卡的版本
"Version": "1.0",
// 关卡的创建时间
Expand Down
30 changes: 30 additions & 0 deletions src/guide/level/submitlevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: 分享和投稿关卡
index: true
icon: share
pageInfo: false
comment: false
order: 2
---

> [!important]
> 分享或投稿关卡,代表你同意[玩家投稿协议](/instructions/Submisson)
>
你可以在[社区关卡](/custom-level/)页面下载到由社区成员制作的关卡文件。如果你有自己制作的关卡,可以通过以下方式分享给其他玩家:

## 1.Discord 服务器

你可以在Discord 服务器的`#custom-level-share`频道分享你的关卡文件。请注意遵守服务器规则。

要加入Discord服务器,请查看[用户社区页面](/contribution/)

## 2.提交到官方关卡库

如果你的关卡完成度较高,你可以提交到官方关卡库。你需要拥有Github账号,并能够使用Git工具。

Git的使用方法可参考[官网开发指南](/guide/webGuide),请注意,官网的Git仓库与关卡库并不相同。

官方关卡库的地址为:[pvzg_level](https://github.com/Gzh0821/pvzg_level)

请参阅官方关卡库的Readme文件了解提交关卡的详细步骤。
30 changes: 30 additions & 0 deletions src/pt-BR/custom-level/submitlevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Share and Contribute Levels
index: true
icon: share
pageInfo: false
comment: false
order: 2
---

> [!important]
> By sharing or contributing levels, you agree to the [Player Contribution Agreement](/instructions/Submisson).
>
You can download level files made by community members on the [Community Level](/custom-level/) page. If you have your own levels, you can share them with other players in the following ways:

## 1. Discord Server

You can share your level files on the `#custom-level-share` channel of the Discord server. Please follow the server rules.

To join the Discord server, please check the [User Community Page](/contribution/).

## 2. Submit to the Official Level Library

If your level is highly completed, you can submit it to the official level library. You need to have a Github account and be able to use Git tools.

For how to use Git, please refer to the [Official Development Guide](/guide/webGuide). Please note that the official Git repository is different from the level library.

The address of the official level library is: [pvzg_level](https://github.com/Gzh0821/pvzg_level).

Please refer to the Readme file of the official level library for detailed steps to submit a level.
7 changes: 6 additions & 1 deletion src/pt-BR/guide/level/levelguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ This field contains the following:
// Level UUID
"uuid": "c58a208a-a5e3-4cfa-9bc3-cc7fbb08c2e3",
// Level name
"name": "SampleLevel I",
"name": {
"en": "SampleLevel",
"zh-CN": "示例关卡"
},
// Level author
"Author": "LMYY",
// Optional, author link
Expand All @@ -194,6 +197,8 @@ This field contains the following:
"en": "This is a sample level.",
"zh-CN": "这是一个示例关卡。"
},
// Supported game version
"GameVersion": "0.1.1",
// Level version
"Version": "1.0",
// Level creation time
Expand Down

0 comments on commit 46599ba

Please sign in to comment.