@next2d/player 1.4.3 → 1.4.7
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.cn.md +78 -0
- package/README.ja.md +74 -0
- package/README.md +6 -19
- package/next2d.js +2 -2
- package/package.json +1 -1
package/README.cn.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Next2D Player
|
|
2
|
+
=============
|
|
3
|
+
<img src="https://next2d.app/assets/img/player/logo.svg" width="200" height="200" alt="Next2D Player Logo">
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Next2D/Player/actions/workflows/integration.yml)
|
|
6
|
+
[](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
|
|
7
|
+
[](https://github.com/Next2D/Player/actions/workflows/lint.yml) \
|
|
8
|
+
[](https://github.com/Next2D/Player/releases)
|
|
9
|
+
[](https://github.com/Next2D/Player/blob/main/LICENSE)
|
|
10
|
+
[](https://next2d.app/docs/player/index.html)
|
|
11
|
+
[](https://discord.gg/6c9rv5Uns5)
|
|
12
|
+
[](https://twitter.com/intent/user?screen_name=Next2D)
|
|
13
|
+
|
|
14
|
+
## 关于
|
|
15
|
+
|
|
16
|
+
Next2D Player 是一个来源于 JavaScript Flash 播放器 "swf2js" 的衍生项目。
|
|
17
|
+
目标是提供一个在任何设备上都工作最快的 2D 引擎。
|
|
18
|
+
|
|
19
|
+
它完整提供了 WebGL 和 WebGL2, 可被用于创建丰富、交互式图形、跨平台应用程序和游戏, 而不需要处理浏览器或者设备兼容性问题。
|
|
20
|
+
|
|
21
|
+
通过使用 Next NoCode Toll, 你可以直观地创建想象中的动画, 导出的 JSON 数据可以通过使用 Next2D Player 很容易被播放和发布。
|
|
22
|
+
Next2D NoCode Tool 是一个 web 服务, 不需要下载并且谁都可以立马使用。
|
|
23
|
+
|
|
24
|
+
使 2D 娱乐开发更简单! 快速! 舒服!
|
|
25
|
+
|
|
26
|
+
## 使用之简单示例
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
next2d.load("JSON Path...");
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## 使用之程序示例
|
|
33
|
+
|
|
34
|
+
```javascript
|
|
35
|
+
const { Loader } = next2d.display;
|
|
36
|
+
const { URLRequest } = next2d.net;
|
|
37
|
+
const { Event } = next2d.events;
|
|
38
|
+
|
|
39
|
+
// create root MovieClip
|
|
40
|
+
const root = next2d.createRootMovieClip();
|
|
41
|
+
|
|
42
|
+
const request = new URLRequest("JSON path");
|
|
43
|
+
const loader = new Loader(request);
|
|
44
|
+
|
|
45
|
+
loader
|
|
46
|
+
.contentLoaderInfo
|
|
47
|
+
.addEventListener(Event.COMPLETE, (event) =>
|
|
48
|
+
{
|
|
49
|
+
const loaderInfo = event.currentTarget;
|
|
50
|
+
|
|
51
|
+
root.addChild(loaderInfo.content);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
loader.load(request);
|
|
55
|
+
```
|
|
56
|
+
@see [API 文档](https://next2d.app/docs/player)
|
|
57
|
+
|
|
58
|
+
## 设置选项
|
|
59
|
+
|
|
60
|
+
| 名称 | 值类型 | 默认值 | 说明 |
|
|
61
|
+
| --- | --- | --- | --- |
|
|
62
|
+
| `base` | string | 空值 | 如果在请求时未设置URL,则要设置。 |
|
|
63
|
+
| `fullScreen` | boolean | false | 全屏绘制 |
|
|
64
|
+
| `tagId` | string | 空值 | 值为你希望在 DOM 中绘制位置的容器 ID。 |
|
|
65
|
+
| `bgColor` | array [R,G,B,A] or false | false | RGBA 值在 0-255 范围内选择。 |
|
|
66
|
+
|
|
67
|
+
## 相关站点
|
|
68
|
+
|
|
69
|
+
* [官网](https://next2d.app)
|
|
70
|
+
* [Player API 文档](https://next2d.app/docs/player)
|
|
71
|
+
* [Next2D NoCode Tool(α version)](https://tool.next2d.app)
|
|
72
|
+
* [Next2D Framework(β version)](https://next2d.app/#framework)
|
|
73
|
+
* [教程 & 参考](https://next2d.app/tutorials/player)
|
|
74
|
+
* [聊天社区(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
75
|
+
|
|
76
|
+
## 许可证
|
|
77
|
+
|
|
78
|
+
本项目使用 [MIT License](https://opensource.org/licenses/MIT) 许可证 - 参考 [LICENSE](LICENSE) 文件了解许可证内容。
|
package/README.ja.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Next2D Player
|
|
2
|
+
=============
|
|
3
|
+
<img src="https://next2d.app/assets/img/player/logo.svg" width="200" height="200" alt="Next2D Player Logo">
|
|
4
|
+
|
|
5
|
+
[](https://github.com/Next2D/Player/actions/workflows/integration.yml)
|
|
6
|
+
[](https://github.com/Next2D/Player/actions/workflows/codeql-analysis.yml)
|
|
7
|
+
[](https://github.com/Next2D/Player/actions/workflows/lint.yml) \
|
|
8
|
+
[](https://github.com/Next2D/Player/releases)
|
|
9
|
+
[](https://github.com/Next2D/Player/blob/main/LICENSE)
|
|
10
|
+
[](https://next2d.app/docs/player/index.html)
|
|
11
|
+
[](https://discord.gg/6c9rv5Uns5)
|
|
12
|
+
[](https://twitter.com/intent/user?screen_name=Next2D)
|
|
13
|
+
|
|
14
|
+
## About
|
|
15
|
+
Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで
|
|
16
|
+
あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。
|
|
17
|
+
|
|
18
|
+
WebGL、WebGL2を完全にサポートしており、ブラウザやデバイスの互換性に対処したりすることなく
|
|
19
|
+
リッチでインタラクティブなグラフィック、クロスプラットフォーム アプリケーション、およびゲームを作成できるライブラリです。
|
|
20
|
+
|
|
21
|
+
Next2D NoCode Toolを利用することで、イメージしたアニメーションを直感的に作成でき、書き出したJSONデータを、Next2D Playerで簡単に再生および公開が可能です。
|
|
22
|
+
Next2D NoCode Toolはインストール不要でアクセスすれば誰でもすぐに使えるWebサービスです。
|
|
23
|
+
|
|
24
|
+
2Dエンターテインメント開発を簡単に!快速に!快適に!
|
|
25
|
+
|
|
26
|
+
## Use Simple Sample
|
|
27
|
+
```javascript
|
|
28
|
+
next2d.load("JSON Path...");
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Use Program Sample
|
|
32
|
+
```javascript
|
|
33
|
+
const { Loader } = next2d.display;
|
|
34
|
+
const { URLRequest } = next2d.net;
|
|
35
|
+
const { Event } = next2d.events;
|
|
36
|
+
|
|
37
|
+
// create root MovieClip
|
|
38
|
+
const root = next2d.createRootMovieClip();
|
|
39
|
+
|
|
40
|
+
const request = new URLRequest("JSON path");
|
|
41
|
+
const loader = new Loader(request);
|
|
42
|
+
|
|
43
|
+
loader
|
|
44
|
+
.contentLoaderInfo
|
|
45
|
+
.addEventListener(Event.COMPLETE, (event) =>
|
|
46
|
+
{
|
|
47
|
+
const loaderInfo = event.currentTarget;
|
|
48
|
+
|
|
49
|
+
root.addChild(loaderInfo.content);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
loader.load(request);
|
|
53
|
+
```
|
|
54
|
+
@see [API Documentation](https://next2d.app/docs/player)
|
|
55
|
+
|
|
56
|
+
## Option settings
|
|
57
|
+
|
|
58
|
+
| name | value | default | description |
|
|
59
|
+
| --- | --- | --- | --- |
|
|
60
|
+
| `base` | string | empty | The value to be set if the URL is not set at the time of the request. |
|
|
61
|
+
| `fullScreen` | boolean | false | It will be drawn beyond the width and height set in the fullscreen setting and stage. |
|
|
62
|
+
| `tagId` | string | empty | Set value of the ID of the DOM where you want to set the drawing. |
|
|
63
|
+
| `bgColor` | array [R,G,B,A] or false | false | RGBA can be specified from 0-255. |
|
|
64
|
+
|
|
65
|
+
## Related sites
|
|
66
|
+
* [Website](https://next2d.app)
|
|
67
|
+
* [Player API Documentation](https://next2d.app/docs/player)
|
|
68
|
+
* [Next2D NoCode Tool(α version)](https://tool.next2d.app)
|
|
69
|
+
* [Next2D Framework(β version)](https://next2d.app/#framework)
|
|
70
|
+
* [Tutorial & Reference.](https://next2d.app/tutorials/player)
|
|
71
|
+
* [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|
package/README.md
CHANGED
|
@@ -11,27 +11,14 @@ Next2D Player
|
|
|
11
11
|
[](https://discord.gg/6c9rv5Uns5)
|
|
12
12
|
[](https://twitter.com/intent/user?screen_name=Next2D)
|
|
13
13
|
|
|
14
|
-
## About
|
|
15
|
-
Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで
|
|
16
|
-
あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。
|
|
17
|
-
|
|
18
|
-
WebGL、WebGL2を完全にサポートしており、ブラウザやデバイスの互換性に対処したりすることなく
|
|
19
|
-
リッチでインタラクティブなグラフィック、クロスプラットフォーム アプリケーション、およびゲームを作成できるライブラリです。
|
|
20
|
-
|
|
21
|
-
Next2D NoCode Toolを利用することで、イメージしたアニメーションを直感的に作成でき、書き出したJSONデータを、Next2D Playerで簡単に再生および公開が可能です。
|
|
22
|
-
Next2D NoCode Toolはインストール不要でアクセスすれば誰でもすぐに使えるWebサービスです。
|
|
23
|
-
|
|
24
|
-
2Dエンターテインメント開発を簡単に!快速に!快適に!
|
|
25
|
-
|
|
26
|
-
## About(English)
|
|
14
|
+
## About
|
|
27
15
|
Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js".
|
|
28
|
-
The goal is to provide the fastest 2D engine that works on any device.
|
|
29
|
-
|
|
30
|
-
It fully supports WebGL and WebGL2, and
|
|
31
|
-
It is a library that allows you to create rich, interactive graphics, cross-platform applications and games without having to deal with browser or device compatibility.
|
|
16
|
+
The goal is to provide the fastest 2D engine that works on any device.
|
|
17
|
+
|
|
18
|
+
It fully supports WebGL and WebGL2, and it allows you to create rich, interactive graphics, cross-platform applications and games without having to deal with browser or device compatibility.
|
|
32
19
|
|
|
33
20
|
By using the Next2D NoCode Tool, you can intuitively create the animation you have imagined, and the exported JSON data can be easily played and published using the Next2D Player.
|
|
34
|
-
Next2D NoCode Tool is a web service that does not require installation and can be used immediately by anyone who accesses it.
|
|
21
|
+
Next2D NoCode Tool is a web service that does not require installation and can be used immediately by anyone who accesses it.
|
|
35
22
|
|
|
36
23
|
2D entertainment development made easy! Fast! Comfortable!
|
|
37
24
|
|
|
@@ -83,4 +70,4 @@ loader.load(request);
|
|
|
83
70
|
* [Chat Community(Discord)](https://discord.gg/6c9rv5Uns5)
|
|
84
71
|
|
|
85
72
|
## License
|
|
86
|
-
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|
|
73
|
+
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](LICENSE) file for details.
|