Weapon#fireFrom

fireFrom : Phaser.Rectangle

This is a Rectangle from within which the bullets are fired. By default it's a 1x1
rectangle, the equivalent of a Point. But you can change the width and height, and if
larger than 1x1 it'll pick a random point within the rectangle to launch the bullet from.

Source code: plugins/weapon/WeaponPlugin.js (Line 92)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.