playcanvas 1.51.7 → 1.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README-zh.md CHANGED
@@ -9,13 +9,14 @@ PlayCanvas 是一款使用 HTML5 和 WebGL 技术运行游戏以及其他 3D 内
9
9
 
10
10
  [![NPM version][npm-badge]][npm-url]
11
11
  [![Minzipped size][minzip-badge]][minzip-url]
12
+ [![Language grade: JavaScript][code-quality-badge]][code-quality-url]
12
13
  [![Average time to resolve an issue][resolution-badge]][isitmaintained-url]
13
14
  [![Percentage of issues still open][open-issues-badge]][isitmaintained-url]
14
15
  [![Twitter][twitter-badge]][twitter-url]
15
16
 
16
- [English](https://github.com/playcanvas/engine/blob/master/README.md)
17
- [中文](https://github.com/playcanvas/engine/blob/master/README-zh.md)
18
- [日本語](https://github.com/playcanvas/engine/blob/master/README-ja.md)
17
+ [English](https://github.com/playcanvas/engine/blob/dev/README.md)
18
+ [中文](https://github.com/playcanvas/engine/blob/dev/README-zh.md)
19
+ [日本語](https://github.com/playcanvas/engine/blob/dev/README-ja.md)
19
20
 
20
21
  ## 项目展示
21
22
 
@@ -152,24 +153,15 @@ PlayCanvas 是一款优秀的全功能游戏引擎。
152
153
 
153
154
  npm run build -- -m
154
155
 
155
- 此条指令将会将结果输出到 `build/output/playcanvas.js.map`
156
+ 此条指令将会将结果输出到 `build/playcanvas.js.map`
156
157
 
157
158
  提示:在生成 source map 过程中,系统会忽略预处理器以防止其对过程产生影响。这意味着在生成 source map 的过程中,所有 debug 和 profiling 代码将会被包含在引擎构建中。
158
159
 
159
- ## 如何测试
160
-
161
- PlayCanvas 使用 Karma 进行单元测试。您可以使用如下两种方式进行测试:
162
-
163
- | Command | Description |
164
- | -------------------- | ------------------------------------------------------------------------------------ |
165
- | `npm run test` | Runs unit tests on a built `playcanvas.js` |
166
- | `npm run test:watch` | Re-runs unit tests when changes are detected - open http://localhost:9876/debug.html |
167
-
168
160
  ## PlayCanvas 平台
169
161
 
170
162
  PlayCanvas 引擎是一款可以基于浏览器的用于制作游戏以及 3D 可视化的开源引擎。除此之外,我们还开发了[PlayCanvas 开发平台](https://playcanvas.com/), 为我们的用户提供了可视化编辑器,资源管理,代码编辑,代码托管以及发布等服务。
171
163
 
172
- [![Editor](https://github.com/playcanvas/editor/blob/master/images/editor.png?raw=true)](https://github.com/playcanvas/editor)
164
+ [![Editor](https://github.com/playcanvas/editor/blob/main/images/editor.png?raw=true)](https://github.com/playcanvas/editor)
173
165
 
174
166
  ## License
175
167
 
@@ -179,6 +171,8 @@ The PlayCanvas Engine is released under the [MIT](https://opensource.org/license
179
171
  [npm-url]: https://www.npmjs.com/package/playcanvas
180
172
  [minzip-badge]: https://img.shields.io/bundlephobia/minzip/playcanvas
181
173
  [minzip-url]: https://bundlephobia.com/result?p=playcanvas
174
+ [code-quality-badge]: https://img.shields.io/lgtm/grade/javascript/g/playcanvas/engine.svg?logo=lgtm&logoWidth=18
175
+ [code-quality-url]: https://lgtm.com/projects/g/playcanvas/engine/context:javascript
182
176
  [resolution-badge]: http://isitmaintained.com/badge/resolution/playcanvas/engine.svg
183
177
  [open-issues-badge]: http://isitmaintained.com/badge/open/playcanvas/engine.svg
184
178
  [isitmaintained-url]: http://isitmaintained.com/project/playcanvas/engine
package/README.md CHANGED
@@ -9,13 +9,14 @@ PlayCanvas is an open-source game engine. It uses HTML5 and WebGL to run games a
9
9
 
10
10
  [![NPM version][npm-badge]][npm-url]
11
11
  [![Minzipped size][minzip-badge]][minzip-url]
12
+ [![Language grade: JavaScript][code-quality-badge]][code-quality-url]
12
13
  [![Average time to resolve an issue][resolution-badge]][isitmaintained-url]
13
14
  [![Percentage of issues still open][open-issues-badge]][isitmaintained-url]
14
15
  [![Twitter][twitter-badge]][twitter-url]
15
16
 
16
- [English](https://github.com/playcanvas/engine/blob/master/README.md)
17
- [中文](https://github.com/playcanvas/engine/blob/master/README-zh.md)
18
- [日本語](https://github.com/playcanvas/engine/blob/master/README-ja.md)
17
+ [English](https://github.com/playcanvas/engine/blob/dev/README.md)
18
+ [中文](https://github.com/playcanvas/engine/blob/dev/README-zh.md)
19
+ [日本語](https://github.com/playcanvas/engine/blob/dev/README-ja.md)
19
20
 
20
21
  ## Project Showcase
21
22
 
@@ -23,7 +24,7 @@ PlayCanvas is an open-source game engine. It uses HTML5 and WebGL to run games a
23
24
  ) have been published using the PlayCanvas engine. Here is a small selection:
24
25
 
25
26
  [![Seemore](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14705/319531/O4J4VU-image-25.jpg)](https://playcanv.as/p/MflWvdTW/) [![After The Flood](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14928/440410/98554E-image-25.jpg)](https://playcanv.as/p/44MRmJRU/) [![Casino](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/14928/349824/U88HJQ-image-25.jpg)](https://playcanv.as/p/LpmXGUe6/)
26
- [![Swooop](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/4763/TKYXB8-image-25.jpg)](https://playcanv.as/p/JtL2iqIH/) [![Master Archer](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/415995/10A5A9-image-25.jpg)](https://playcanv.as/p/JERg21J8/) [![Flappy Bird](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/8/375389/23PRTL-image-25.jpg)](https://playcanv.as/p/2OlkUaxF/)
27
+ [![Swooop](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/4763/TKYXB8-image-25.jpg)](https://playcanv.as/p/JtL2iqIH/) [![dev Archer](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/415995/10A5A9-image-25.jpg)](https://playcanv.as/p/JERg21J8/) [![Flappy Bird](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/8/375389/23PRTL-image-25.jpg)](https://playcanv.as/p/2OlkUaxF/)
27
28
  [![Car](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/347824/7ULQ3Y-image-25.jpg)](https://playcanv.as/p/RqJJ9oU9/) [![Star-Lord](https://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/12/333626/BGQN9H-image-25.jpg)](https://playcanv.as/p/SA7hVBLt/) [![Global Illumination](http://s3-eu-west-1.amazonaws.com/images.playcanvas.com/projects/4373/625081/6AB32D-image-25.jpg)](https://playcanv.as/p/ZV4PW6wr/ )
28
29
 
29
30
 
@@ -130,7 +131,7 @@ Now you can run various build options:
130
131
 
131
132
  Pre-built versions of the engine are also available.
132
133
 
133
- Latest development release (head revision of master branch):
134
+ Latest development release (head revision of dev branch):
134
135
 
135
136
  * https://code.playcanvas.com/playcanvas-latest.js
136
137
  * https://code.playcanvas.com/playcanvas-latest.min.js
@@ -151,24 +152,15 @@ To build the source map to allow for easier engine debugging, you can add `-- -m
151
152
 
152
153
  npm run build -- -m
153
154
 
154
- This will output to `build/output/playcanvas.js.map`
155
+ This will output to `build/playcanvas.js.map`
155
156
 
156
157
  Note: The preprocessor is ignored when generating the source map as it breaks the mapping. This means that all debug and profiling code is included in the engine build when generating the source map.
157
158
 
158
- ## How to run tests
159
-
160
- PlayCanvas uses of Karma for unit testing. There are two ways of running the tests:
161
-
162
- | Command | Description |
163
- |------------------------|---------------------------------------------------------------------------------------|
164
- | `npm run test` | Runs unit tests on a built `playcanvas.js` |
165
- | `npm run test:watch` | Re-runs unit tests when changes are detected - open http://localhost:9876/debug.html |
166
-
167
159
  ## PlayCanvas Editor
168
160
 
169
161
  The PlayCanvas Engine is an open source engine which you can use to create HTML5 apps/games. In addition to the engine, we also make the [PlayCanvas Editor](https://playcanvas.com/):
170
162
 
171
- [![Editor](https://github.com/playcanvas/editor/blob/master/images/editor.png?raw=true)](https://github.com/playcanvas/editor)
163
+ [![Editor](https://github.com/playcanvas/editor/blob/main/images/editor.png?raw=true)](https://github.com/playcanvas/editor)
172
164
 
173
165
  For Editor related bugs and issues, please refer to the [Editor's repo](https://github.com/playcanvas/editor).
174
166
 
@@ -176,6 +168,8 @@ For Editor related bugs and issues, please refer to the [Editor's repo](https://
176
168
  [npm-url]: https://www.npmjs.com/package/playcanvas
177
169
  [minzip-badge]: https://img.shields.io/bundlephobia/minzip/playcanvas
178
170
  [minzip-url]: https://bundlephobia.com/result?p=playcanvas
171
+ [code-quality-badge]: https://img.shields.io/lgtm/grade/javascript/g/playcanvas/engine.svg?logo=lgtm&logoWidth=18
172
+ [code-quality-url]: https://lgtm.com/projects/g/playcanvas/engine/context:javascript
179
173
  [resolution-badge]: http://isitmaintained.com/badge/resolution/playcanvas/engine.svg
180
174
  [open-issues-badge]: http://isitmaintained.com/badge/open/playcanvas/engine.svg
181
175
  [isitmaintained-url]: http://isitmaintained.com/project/playcanvas/engine