mirror of
https://github.com/wassname/phaser.git
synced 2026-08-11 11:23:06 +08:00
Updating copyright year and README.
This commit is contained in:
@@ -42,7 +42,7 @@ function create() {
|
||||
player.anchor.setTo(0.5, 0.5);
|
||||
player.body.collideWorldBounds = true;
|
||||
player.body.bounce.setTo(0.9, 0.9);
|
||||
player.body.friction = 0.2;
|
||||
player.body.linearDamping = 0.2;
|
||||
player.body.gravity.setTo(0, 8);
|
||||
|
||||
// Enable input.
|
||||
|
||||
@@ -37,7 +37,7 @@ function create() {
|
||||
player.anchor.setTo(0.5, 0.5);
|
||||
player.body.collideWorldBounds = true;
|
||||
player.body.bounce.setTo(0.9, 0.9);
|
||||
player.body.friction = 0.2;
|
||||
player.body.linearDamping = 0.2;
|
||||
|
||||
// Enable input.
|
||||
player.inputEnabled = true;
|
||||
|
||||
@@ -23,7 +23,7 @@ function create() {
|
||||
s.name = 'alien' + s;
|
||||
s.body.collideWorldBounds = true;
|
||||
s.body.bounce.setTo(0.8, 0.8);
|
||||
s.body.friction = 0;
|
||||
s.body.linearDamping = 0;
|
||||
s.body.minVelocity.setTo(0, 0);
|
||||
s.body.velocity.setTo(10 + Math.random() * 40, 10 + Math.random() * 40);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user