mirror of
https://github.com/wassname/phaser.git
synced 2026-09-12 12:40:47 +08:00
Integrated SAT. Fixed lots of examples. Fixed documentation. Added new examples and built new phaser.js file for testing.
This commit is contained in:
@@ -16,7 +16,7 @@ function create() {
|
||||
emitter = game.add.emitter(0, 0, 200);
|
||||
|
||||
emitter.makeParticles('diamond');
|
||||
emitter.gravity = 10;
|
||||
emitter.gravity = 200;
|
||||
|
||||
game.input.onDown.add(particleBurst, this);
|
||||
|
||||
|
||||
@@ -17,9 +17,8 @@ function create() {
|
||||
|
||||
emitter.minParticleSpeed.setTo(-200, -300);
|
||||
emitter.maxParticleSpeed.setTo(200, -400);
|
||||
emitter.gravity = 8;
|
||||
emitter.gravity = 150;
|
||||
emitter.bounce.setTo(0.5, 0.5);
|
||||
emitter.particleDrag.x = 10;
|
||||
emitter.angularDrag = 30;
|
||||
|
||||
emitter.start(false, 8000, 400);
|
||||
@@ -28,6 +27,6 @@ function create() {
|
||||
|
||||
function update() {
|
||||
|
||||
game.physics.collide(emitter, emitter);
|
||||
game.physics.collide(emitter);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user