All Projects → RobotlegsJS → Robotlegsjs Pixi

RobotlegsJS / Robotlegsjs Pixi

Licence: mit
RobotlegsJS framework integration with PixiJS

Programming Languages

typescript
32286 projects

Labels

Projects that are alternatives of or similar to Robotlegsjs Pixi

d3-force-webgl-integration-demo
Integrating WebGL and D3-force to improve performance. 👻
Stars: ✭ 44 (+76%)
Mutual labels:  pixijs
Leaflet.pixioverlay
Bring Pixi.js power to Leaflet maps
Stars: ✭ 264 (+956%)
Mutual labels:  pixijs
Pixi Filters
Collection of community-authored custom display filters for PixiJS
Stars: ✭ 524 (+1996%)
Mutual labels:  pixijs
game.hyeon.me
My web game repository
Stars: ✭ 23 (-8%)
Mutual labels:  pixijs
pixi-text-style
PIXI.TextStyle Generator
Stars: ✭ 23 (-8%)
Mutual labels:  pixijs
Duckhunt Js
DuckHunt ported to JS and HTML5
Stars: ✭ 390 (+1460%)
Mutual labels:  pixijs
dungeon
A configurable and editable dungeon generator using Binary-Space Partitioning and hand-made rooms.
Stars: ✭ 49 (+96%)
Mutual labels:  pixijs
React Pixi Fiber
Write PixiJS applications using React declarative style.
Stars: ✭ 568 (+2172%)
Mutual labels:  pixijs
eva.js
Eva.js is a front-end game engine specifically for creating interactive game projects.
Stars: ✭ 1,468 (+5772%)
Mutual labels:  pixijs
Awesome Pixijs
My list of awesome pixi.js related parties
Stars: ✭ 489 (+1856%)
Mutual labels:  pixijs
react-flappy-bird
A side-scroller where the player controls a bird, attempting to fly between columns of green pipes without hitting them.
Stars: ✭ 55 (+120%)
Mutual labels:  pixijs
FairyGUI-PixiJS-Example
Examples for FairyGUI-PixiJS
Stars: ✭ 21 (-16%)
Mutual labels:  pixijs
Detect Gpu
Classifies GPUs based on their 3D rendering benchmark score allowing the developer to provide sensible default settings for graphically intensive applications.
Stars: ✭ 460 (+1740%)
Mutual labels:  pixijs
pixi-omber-gltf2-vector
Pixi.js library for using vector art created in Omber that's saved in glTF 2.0 format
Stars: ✭ 13 (-48%)
Mutual labels:  pixijs
Pixi Live2d
Display live2D model as a sprite in pixi.js.
Stars: ✭ 537 (+2048%)
Mutual labels:  pixijs
hotmap
WebGL Heatmap Viewer for Big Data and Bioinformatics
Stars: ✭ 13 (-48%)
Mutual labels:  pixijs
Metacar
A reinforcement learning environment for self-driving cars in the browser.
Stars: ✭ 337 (+1248%)
Mutual labels:  pixijs
Ct Js
Ct.js is a desktop game engine that makes learning programming fun and game development easy by its visual editors and well-documented code library
Stars: ✭ 831 (+3224%)
Mutual labels:  pixijs
Pixi Particles
A particle system for PixiJS
Stars: ✭ 555 (+2120%)
Mutual labels:  pixijs
D Zone
An ambient life simulation driven by user activity within a Discord server
Stars: ✭ 466 (+1764%)
Mutual labels:  pixijs

RobotlegsJS PixiJS Extension

GitHub license Gitter chat Build Status codebeat badge Test Coverage npm version Greenkeeper badge styled with prettier

Integrate RobotlegsJS framework with PixiJS.

Installation

Get @robotlegsjs/pixi

You can get the latest release and the type definitions using NPM:

npm install @robotlegsjs/pixi --save

Or using Yarn:

yarn add @robotlegsjs/pixi

From version 0.2.0 of this package, the PixiJS dependencies were moved to peerDependencies, allowing the final user to choose the desired version of the pixi.js library on each project.

For pixi.js version 5

The @robotlegsjs/pixi package version ^2.0.0 is compatible with versions >=5.0.0 <6 version range of pixi.js library.

Since version 5.0.0 of pixi.js, the eventemitter3 library was removed and is not necessary anymore.

You can setup your project for version 5 of pixi.js using:

npm install @robotlegsjs/[email protected]^2.0.0 [email protected]^5.0.0 --save

or

yarn add @robotlegsjs/[email protected]^2.0.0 [email protected]^5.0.0

For pixi.js version 4

For pixi.js >=4.2.1 <5, please use @robotlegsjs/pixi version ^1.

npm install @robotlegsjs/[email protected]^1.0.1 --save

or

yarn add @robotlegsjs/[email protected]^1.0.1

Since each version of pixi.js v4 library defines which version of eventemitter3 library is being used, remember to also install the proper version of eventemitter3 in your project.

As example, when you would like to use the version 4.2.1 of pixi.js library, you can run:

npm install [email protected] [email protected]^2.0.0 reflect-metadata --save

or

yarn add [email protected] [email protected]^2.0.0 reflect-metadata

Setup of your project

Then follow the installation instructions of RobotlegsJS library to complete the setup of your project.

Dependencies

Peer Dependencies

Usage

import "reflect-metadata";

import * as PIXI from 'pixi.js';

import { Context, MVCSBundle } from "@robotlegsjs/core";
import { ContextView, PixiBundle } from "@robotlegsjs/pixi";

import { MyConfig } from "./config/MyConfig";
import { RobotlegsView } from "./view/RobotlegsView";

export class Game {

    private canvas: HTMLCanvasElement;
    private stage: PIXI.Container;
    private renderer: PIXI.Renderer;
    private context: Context;

    constructor () {
        this.canvas = <HTMLCanvasElement>(document.getElementById("canvas"));
        this.renderer = PIXI.autoDetectRenderer({
            width: 960,
            height: 400,
            view: this.canvas,
            backgroundColor: 0xffffff
        });
        this.stage = new PIXI.Container();

        this.context = new Context();
        this.context.install(MVCSBundle, PixiBundle).
            configure(new ContextView(this.stage)).
            configure(MyConfig).
            initialize();

        this.stage.addChild(new RobotlegsView());

        document.body.appendChild(this.renderer.view);

        this.render();
    }

    public render = () => {
        this.renderer.render(this.stage);
        window.requestAnimationFrame(this.render);
    }

}

let game: Game = new Game();

See full example here

Running the example

Run the following commands to run the example:

npm install
npm start

or:

yarn install
yarn start

Checking the example

You can check our example project here.

RobotlegsJS PixiJS for enterprise

Available as part of the Tidelift Subscription

The maintainers of @robotlegsjs/pixi and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].