DCollage is a lightly opinionated PIXIJS based digital collage boilerplate with game dev aspirations and a component driven paradigm written in TypeScript. The goal of DCollage is to facilitate the creation of multi-layered, interactive, collages similar to those I created back in the days of Flash. Surprise it works for simple games too!
DCollage is meant to get you up and running with a PIXI app in minutes. While there are a lot of nuances that can be tweaked and you are not forced to follow the patterns this boilerplate includes it should be a matter of clone, install, run.
See the wiki for more documentation:
- wiki
- Patterns and Cookbook page
- Check out the branch
simple-gamefor a good starting point for a game project
- Clone or spin up a new repo using
https://github.com/JRVisuals/dcollage-pixijs-boilerplate
- Run
yarnat the project root to install all of thenode_modules - Run
yarn devto begin developing locallyhttp://localhost:10001/
- Set the
APP_HEIGHTandAPP_WIDTHinconstants/index.ts - Edit
core.tsto add or remove components from the main container - Set up any screens that you need
- There is a
components/libraryincluded to help you get started (please contribute yours back to the repo and namespace their directory E.g.components/library/yourGithubUsername) - Put your assets in
./src/assetsand add anything you want to preload to thepreloadercomponent and at the bottom ofcore.ts - Use any of the
components/librarycomponents, or make your own
yarn devto go into development mode with live reloadyarn cleanto clean the/distdirectoryyarn buildto create a distributable bundle in/distyarn docsto generate markdown documentation in/docsyarn nwjs-startto open latest/distin nwjsyarn nwjs-distto build executables in/dist-nwjs- check package.json for target options
- possible values:
win-x86,win-x64,linux-x86,linux-x64,mac-x64
yarn all-the-thingstoclean,buildandnwjs-dist
- Check out the branch
simple-gamefor a good starting poit for a game project - Will be adding other starting branches as we go
- Pixi.js devtools Chrome Extension shows up in your Chrome Dev Tools Panel and can be super helpful - this is why we will usually name our containers w/
container.name='foo'
- DCollage Boilerplate https://github.com/jrod-disco/dcollage-pixijs-boilerplate
- PIXIJS - WebGL renderer with Canvas fallback and so much more https://github.com/pixijs/pixi.js
- GSAP - tween animation library https://greensock.com/docs/v2/Plugins/PixiPlugin
- pixi-filters - Collection of community-authored custom display filters for PixiJS https://github.com/pixijs/pixi-filters Currently yarn linked to a local version of the repo in order to use the as of yet un-merged changes to the godray filter which add alpha functionality.
- NW.JS - Builds executables for Mac, PC, and Linux https://nwjs.io/
- Visual Studio Code
- Sublime Text
- Aesprite
- Audacity
- Reason
- bmGlyph How to Use for PIXI
- Pixi.JS
- TypeScript
- Prettier
- Rollup
- TSDoc / TypeDoc
- NW.JS
