Skip to content

Pythone/Player

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next2D Player

Next2D Player Logo

UnitTest CodeQL Lint
release license Docs Discord Follow us on Twitter

About(Japanese)

Next2D Playerは、JavaScript FlashPlayer「swf2js」から派生したプロジェクトで
あらゆるデバイスで動作する2D最速エンジンを提供することを目的としてます。

WebGL、WebGL2を完全にサポートしており、ブラウザやデバイスの互換性に対処したりすることなく
リッチでインタラクティブなグラフィック、クロスプラットフォーム アプリケーション、およびゲームを作成できるライブラリです。

Next2D NoCode Toolを利用することで、イメージしたアニメーションを直感的に作成でき、書き出したJSONデータを、Next2D Playerで簡単に再生および公開が可能です。
Next2D NoCode Toolはインストール不要でアクセスすれば誰でもすぐに使えるWebサービスです。

2Dエンターテインメント開発を簡単に!快速に!快適に!

About(English)

Next2D Player is a project derived from the JavaScript FlashPlayer "swf2js".
The goal is to provide the fastest 2D engine that works on any device.

It fully supports WebGL and WebGL2, and can be used to create rich, interactive graphics and cross-platform applications without having to deal with browser or device compatibility.
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.

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.
Next2D NoCode Tool is a web service that does not require installation and can be used immediately by anyone who accesses it.

2D entertainment development made easy! Fast! Comfortable!

Use Simple Sample

next2d.load("JSON Path...");

Use Program Sample

const { Loader }     = next2d.display;
const { URLRequest } = next2d.net;
const { Event }      = next2d.events;

// create root MovieClip
const root = next2d.createRootMovieClip();

const request = new URLRequest("JSON path");
const loader  = new Loader(request);

loader
    .contentLoaderInfo
    .addEventListener(Event.COMPLETE, (event) =>
    {
        const loaderInfo = event.currentTarget;
        
        root.addChild(loaderInfo.content);
    });

loader.load(request);

@see API Documentation

Option settings

name value default description
base string empty The value to be set if the URL is not set at the time of the request.
fullScreen boolean false It will be drawn beyond the width and height set in the fullscreen setting and stage.
tagId string empty Set value of the ID of the DOM where you want to set the drawing.
bgColor array [R,G,B,A] or false false RGBA can be specified from 0-255.

Related sites

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Aims to provide a fast 2D player.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published