All Projects → dacaher → pixijs-ts-boilerplate

dacaher / pixijs-ts-boilerplate

Licence: MIT license
Just another PixiJS Typescript Boilerplate with some basic functionalities

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to pixijs-ts-boilerplate

Leaflet.pixioverlay
Bring Pixi.js power to Leaflet maps
Stars: ✭ 264 (+388.89%)
Mutual labels:  pixijs, pixi
Pixi Live2d
Display live2D model as a sprite in pixi.js.
Stars: ✭ 537 (+894.44%)
Mutual labels:  pixijs, pixi
pixi-omber-gltf2-vector
Pixi.js library for using vector art created in Omber that's saved in glTF 2.0 format
Stars: ✭ 13 (-75.93%)
Mutual labels:  pixijs, pixi
pixi-shim
PIXI.js Back-End "shim". For mocking Canvas in Node.js with ❤️
Stars: ✭ 45 (-16.67%)
Mutual labels:  pixijs, pixi
Pixi Seed
Pixi.js project seed with ES6 and webpack
Stars: ✭ 149 (+175.93%)
Mutual labels:  pixijs, pixi
React Pixi Fiber
Write PixiJS applications using React declarative style.
Stars: ✭ 568 (+951.85%)
Mutual labels:  pixijs, pixi
D Zone
An ambient life simulation driven by user activity within a Discord server
Stars: ✭ 466 (+762.96%)
Mutual labels:  pixijs, pixi
Gown.js
UI system for pixi.js inspired by feathers-ui
Stars: ✭ 195 (+261.11%)
Mutual labels:  pixijs, pixi
pixi-miniprogram
一个可运行于微信小程序的PIXI引擎,通过模拟window环境,有些功能小程序无法模拟,就直接修改了PIXI引擎代码,最终使得PIXI引擎正常运行在小程序上
Stars: ✭ 72 (+33.33%)
Mutual labels:  pixijs, pixi
Pixi.js
The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.
Stars: ✭ 34,982 (+64681.48%)
Mutual labels:  pixijs, pixi
Pixi Haxe
Externs of Pixi.js for Haxe
Stars: ✭ 175 (+224.07%)
Mutual labels:  pixijs, pixi
Pixi Sound
WebAudio API playback library, with filters. Modern audio playback for modern browsers.
Stars: ✭ 201 (+272.22%)
Mutual labels:  pixijs, pixi
anim8js
The ultimate animation library for javascript - animate everything!
Stars: ✭ 33 (-38.89%)
Mutual labels:  pixijs
pixi-console
Pixi.js console
Stars: ✭ 39 (-27.78%)
Mutual labels:  pixijs
PixiCulling
A cell based culling engine for Pixi
Stars: ✭ 14 (-74.07%)
Mutual labels:  pixi
gstatsjs
Graphics statistic (DrawCalls and TextureCount) for WebGL
Stars: ✭ 48 (-11.11%)
Mutual labels:  pixijs
live2d-viewer-web
Web implementation of Live2D Viewer.
Stars: ✭ 42 (-22.22%)
Mutual labels:  pixijs
pixi-ease
pixi.js animation library using easing functions
Stars: ✭ 90 (+66.67%)
Mutual labels:  pixi
particle-emitter
A particle system for PixiJS
Stars: ✭ 709 (+1212.96%)
Mutual labels:  pixijs
nuu
SciFi-MMORPG-2d-Scrolling-Action-Trade-Adventure
Stars: ✭ 17 (-68.52%)
Mutual labels:  pixijs

pixijs-ts-boilerplate

Just another PixiJS Typescript Boilerplate

Getting Started

Another boilerplate to speed up project setup for developing typescript apps with PixiJS. Ready to compile code for dev and production env. Provides a helper class (PixiAppWrapper) to manage resizing (full size, keeping aspect ratio or no resize at all), device orientation, alignment of the stage within the canvas view, toggle fullscreen, display some media info and a fps-meter, and some classes to assist with assets loading.

Versions:

Note: Starting from v2 non-dev dependencies are kept inside the src/scripts/vendor folder (impl) and src/types (definitions). This means that those deps will have to be manually managed. Some companies do not want to heavily rely on npm repos. Going back to npm dependencies should be fairly simple.

Included PixiJS plugins

*** PLEASE NOTE THAT IN ORDER TO USE THE SPINE RUNTIME YOU MUST OWN A VALID SPINE LICENSE.

Other 3rd party libs

Prerequisites

Install Node & NPM from here or using NVM

Installing

Choose one of the following options:

  • Export the project with svn
svn export https://github.com/dacaher/pixijs-ts-boilerplate/trunk/
  • Download it as ZIP

  • Clone the git repo — git clone https://github.com/dacaher/pixijs-ts-boilerplate.git and checkout the tagged release you'd like to use.

Edit package.json to change project details.

Install NPM dependencies by running.

npm install

Initial Steps

npm run build && npm run serve

You should see a sample app with a fps-meter and a div containing some display info.

  • See src/scripts/app for a showcase.
  • Edit src/html/index.html, src/scripts/index.ts and src/styles/style.css as desired. Index.ts is the entry point for bundling the application.
  • Instantiate App with parameters width, height, align, resize and a canvas view container if desired.
  • Optionally add/remove custom linter rules from tslint.json.
  • Finally remove folder src/scripts/app and assets/gfx/* when not needed.

Note that pixi.js is kept as a external dependency and it is not bundled within the application.

NPM scripts

  • clean - removes dev, dist and doc dirs
  • build - compiles and copy all the assets to dev dir
  • build:release - compiles and uglifies to dist dir
  • rebuild:all - cleans and rebuilds dev, dist and doc.
  • serve - serves (0.0.0.0:9000) dev dir with Hot Module Replacement enabled through webpack-dev-server
  • serve:release - serves (0.0.0.0:9999) dist dir through http-server to test production bundle
  • test - does nothing right now
  • doc - generate app doc with typedoc
  • start - runs build & serve

Contributing

As a fairly new developer with Typescript (and javascript ecosystems in general) any suggestion, bug report or improvement submitted would be very much appreciated.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • David C. - Initial work - dacaher

See also the list of contributors who participated in this project.

License

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

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].