Skip to content

Commit d2269c3

Browse files
committed
Docs update.
1 parent 0da7cf5 commit d2269c3

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

src/plugins/weapon/WeaponPlugin.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ Phaser.Weapon = function (game, parent) {
9292
this.fireFrom = new Phaser.Rectangle(0, 0, 1, 1);
9393

9494
/**
95-
* The angle at which the bullets are fired. This can be a const such as Phaser.Weapon.BULLET_UP
95+
* The angle at which the bullets are fired. This can be a const such as Phaser.ANGLE_UP
9696
* or it can be any number from 0 to 360 inclusive, where 0 degrees is to the right.
9797
* @type {integer}
9898
*/
99-
this.fireAngle = Phaser.Weapon.BULLET_UP;
99+
this.fireAngle = Phaser.ANGLE_UP;
100100

101101
/**
102102
* When a Bullet is fired it can optionally inherit the velocity of the `trackedSprite` if set.
@@ -422,17 +422,8 @@ Phaser.Weapon.KILL_WORLD_BOUNDS = 5;
422422
*/
423423
Phaser.Weapon.KILL_STATIC_BOUNDS = 6;
424424

425-
Phaser.Weapon.BULLET_UP = 270;
426-
Phaser.Weapon.BULLET_DOWN = 90;
427-
Phaser.Weapon.BULLET_LEFT = 180;
428-
Phaser.Weapon.BULLET_RIGHT = 0;
429-
Phaser.Weapon.BULLET_NORTH_EAST = 315;
430-
Phaser.Weapon.BULLET_NORTH_WEST = 225;
431-
Phaser.Weapon.BULLET_SOUTH_EAST = 45;
432-
Phaser.Weapon.BULLET_SOUTH_WEST = 135;
433-
434425
/**
435-
*
426+
* This
436427
*
437428
* @method Phaser.Group#createBullets
438429
* @param {integer} [quantity=1] - The quantity of bullets to seed the Weapon with. If -1 it will set the pool to automatically expand.

0 commit comments

Comments
 (0)