phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
13 lines (12 loc) • 568 B
JavaScript
/**
* @callback Phaser.Types.Physics.Arcade.ArcadePhysicsCallback
*
* A callback receiving two Game Objects.
*
* When colliding a single sprite with a Group or TilemapLayer, `object1` is always the sprite.
*
* For all other cases, `object1` and `object2` match the same arguments in `collide()` or `overlap()`.
*
* @param {(Phaser.Types.Physics.Arcade.GameObjectWithBody|Phaser.Tilemaps.Tile)} object1 - The first Game Object.
* @param {(Phaser.Types.Physics.Arcade.GameObjectWithBody|Phaser.Tilemaps.Tile)} object2 - The second Game Object.
*/