mirror of
https://github.com/wassname/phaser.git
synced 2026-10-03 12:42:08 +08:00
Updating copyright year and README.
This commit is contained in:
1 parent
8e77e8cedb
commit
0896c2fac7
102 files changed
+160
-298
No files matched your search
@@ -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