Skip to content

Commit

Permalink
proton update v3.0.5
Browse files Browse the repository at this point in the history
proton update v3.0.5
  • Loading branch information
a-jie committed Jan 27, 2018
1 parent 71df0e6 commit a432410
Show file tree
Hide file tree
Showing 194 changed files with 23,995 additions and 23,107 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"es2015-rollup",
"stage-0"
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules

# documentation
build/docs/

package-lock.json
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Proton

> The documentation is available [here](https://projects.jpeer.at/proton/)
Proton is an easily customizable html5 particle engine including six different types of renderers. <br>
Proton is a lightweight and powerful javascript particle engine including six different types of renderers. <br>
Check out examples at http://a-jie.github.io/Proton/

## Features
- Six kinds of renderers
- canvas
- dom
- webgl
- easeljs
- pixel
- easeljs
- pixijs
- Create cool effects like the demo of <a href="http://www.71squared.com/">71squared's ParticleDesigner</a> in 10 lines of code.
- Integratable into any game engine
Expand Down Expand Up @@ -56,33 +56,34 @@ emitter.addBehaviour(new Proton.Alpha(1, 0));
//set emitter position
emitter.p.x = canvas.width / 2;
emitter.p.y = canvas.height / 2;
emitter.emit();
emitter.emit(5);

//add emitter to the proton
proton.addEmitter(emitter);

// add canvas renderer
var renderer = new Proton.Renderer('canvas', proton, canvas);
renderer.start();
var renderer = new Proton.CanvasRenderer(canvas);
proton.addRenderer(renderer);

//use Euler integration calculation is more accurate (default false)
Proton.USE_CLOCK = false or true;
```

## Building Proton
Node is a dependency, use terminal to install it with with:
`git clone git://github.com/a-jie/Proton.git`

Then navigate to the build directory by running:
Node is a dependency, use terminal to install it with:

```
cd ./build
node build.js
```javascript
git clone git://github.com/a-jie/Proton.git
...
npm install
npm run build
```

Or use npm script
```
npm run build
and run example

```javascript
npm start
//vist http://localhost:3001/example/
```

## Changelog
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Proton",
"version": "2.2.1",
"version": "3.0.1",
"homepage": "http://a-jie.github.io/Proton",
"authors": [
"a-jie <[email protected]>"
Expand Down
83 changes: 0 additions & 83 deletions build/build.js

This file was deleted.

91 changes: 0 additions & 91 deletions build/config

This file was deleted.

Loading

0 comments on commit a432410

Please sign in to comment.