File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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*/
423423Phaser . 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.
You can’t perform that action at this time.
0 commit comments