phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
24 lines (22 loc) • 788 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Camera Follower Update Event.
*
* This event is dispatched by a Camera instance when it is following a
* Game Object and the Camera position has been updated as a result of
* that following.
*
* Listen to it from a Camera instance using: `camera.on('followupdate', listener)`.
*
* @event Phaser.Cameras.Scene2D.Events#FOLLOW_UPDATE
* @type {string}
* @since 3.50.0
*
* @param {Phaser.Cameras.Scene2D.BaseCamera} camera - The camera that emitted the event.
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the camera is following.
*/
module.exports = 'followupdate';