Skip to content

Commit 3c60528

Browse files
author
James
committed
updated weapon's fire() docs
1 parent 7f7a355 commit 3c60528

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/plugins/weapon/WeaponPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,10 +690,10 @@ Phaser.Weapon.prototype.trackPointer = function (pointer, offsetX, offsetY) {
690690

691691
/**
692692
* Attempts to fire a single Bullet. If there are no more bullets available in the pool, and the pool cannot be extended,
693-
* then this method returns `false`. It will also return false if not enough time has expired since the last time
693+
* then this method returns `null`. It will also return `null` if not enough time has expired since the last time
694694
* the Weapon was fired, as defined in the `Weapon.fireRate` property.
695695
*
696-
* Otherwise the first available bullet is selected and launched.
696+
* Otherwise the first available bullet is selected, launched, and returned.
697697
*
698698
* The arguments are all optional, but allow you to control both where the bullet is launched from, and aimed at.
699699
*

0 commit comments

Comments
 (0)