Phaser API Documentation


Member of: Phaser.Structs.Map

merge(map, [override])


Merges all new keys from the given Map into this one. If it encounters a key that already exists it will be skipped unless override is set to true.


name type arguments Default description
map Phaser.Structs.Map

The Map to merge in to this Map.

override boolean <optional> false

Set to true to replace values in this Map with those from the source map, or false to skip them.


This Map object.

Since: 3.0.0
Source: src/structs/Map.js (Line 331)