You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update README.md
add wiki link
* Update README.md
* Update README.md
* update README, lots of new info
* cleaning up main and adding comments, setting up library components
* more README updates
* add import path aliases, minor tweaks
* v0.3.5
* fix serializejs vulnerability
* more package maintenance
Copy file name to clipboardExpand all lines: README.md
+59-11Lines changed: 59 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,64 @@
1
1
### Bootstrapped with DCollage (Digital Collage Boilerplate w/ PIXIJS)
2
2
3
-
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!
3
+
DCollage is a lightly opinionated PIXIJS based digital collage boilerplate with game dev aspirations and a component driven paradigm written in TypeScript.
4
4
5
-
# Project Title
5
+
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! [See the repo WIKI for additional information.](https://github.com/jrod-disco/dcollage-pixijs-boilerplate/wiki)
6
6
7
-
Project description may appear here.
7
+
The section of the README below can be used to bootstrap your project readme or removed when you use this template.
8
+
9
+
# Your Project Title
10
+
11
+
Your project description may appear here.
12
+
13
+
# Getting Started
14
+
15
+
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.
16
+
17
+
## Clone or Template
18
+
19
+
- Clone or spin up a new repo using the github template `https://github.com/jrod-disco/dcollage-pixijs-boilerplate.git`
20
+
21
+
## Install and Run
22
+
23
+
- Run `yarn install` at the project root to install all of the `node_modules`
24
+
- Run `yarn start` to begin developing locally `http://localhost:10001/`
25
+
26
+
## Have Fun!
27
+
28
+
- Edit `main.ts` to add or remove components from the main container there will be a handful of `_prebuilt` example components included to help you get started
29
+
- Put your assets in `./src/assets` and add anything you want to preload to the `preloader` at the bottom of `main.ts`
30
+
- Use any of the `_prebuilt` components, or make your own
31
+
32
+
## DCollage Prebuilt Components
33
+
34
+
- Components should be barreled up into a single `COMP` import, in addition "prebuilt componenents" that come with the boilerplate are double-barreled (shame on me) and available via `COMP.LIB`
35
+
- if you follow this pattern you can create a new component by:
- The component function will return a module object which will include a `container` for components that have a visual aspect
44
+
- Add this container to the existing `mainContainer` or any container you create like so:
45
+
46
+
`mainContainer.addChild(newComponent.container);`
47
+
48
+
- This allows for components to have a discreet "rendered" container as well as any logic and exposed functions the returned module object has available
49
+
- It is key to note that components are functional modules rather than classes but this doesn't mean you couldn't use classes if you wanted to. See for more info: [The Revealing Module Pattern in Javascript](https://gist.github.com/zcaceres/bb0eec99c02dda6aac0e041d0d4d7bf2)
50
+
51
+
## Eventing and Application Access
52
+
53
+
- Currently events are all handled via callbacks; this has been sufficient for basic projects but a more robust pub-sub/eventBus is on the roadmap
54
+
- At times you may want/need to access the PIXI Application instance; in this case you can tweak the bootstrapping function to `window.APP = bootstrapApp({ spriteSheets, sounds });` exposing the `APP` in the global space via window; this is helpful in the event that you want to freeze the app, say for a game PAUSE or something `window.APP.stop();` from within a nested component
55
+
56
+
# Build Scripts
57
+
58
+
-`yarn start` to go into development mode with live reload
59
+
-`yarn clean` to clean the `/dist` directory
60
+
-`yarn build` to create a distributable bundle in `/dist`
61
+
-`yarn docs` to generate markdown documentation in `/docs`
- PIXIJS - WebGL renderer with Canvas fallback and so much more [https://github.com/pixijs/pixi.js](https://github.com/pixijs/pixi.js)
31
-
- pixi-filters - Collection of community-authored custom display filters for PixiJS [https://github.com/pixijs/pixi-filters](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.
- pixi-filters - Collection of community-authored custom display filters for PixiJS [https://github.com/pixijs/pixi-filters](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.
33
88
34
89
## Tools Used
35
90
@@ -39,13 +94,6 @@ Nothing yet
39
94
- Audacity
40
95
- Reason
41
96
42
-
# Build Scripts
43
-
44
-
-`yarn start` to go into development mode with live reload
45
-
-`yarn clean` to clean the `/dist` directory
46
-
-`yarn build` to create a distributable bundle in `/dist`
47
-
-`yarn docs` to generate markdown documentation in `/docs`
0 commit comments