Prefab user properties

As we mentioned in previous sections, a prefab extends a Phaser built-in type or another prefab. This means a prefab inherits the properties defined in the Phaser built-in types. However, you have the option to define new properties.

With prefab user properties, you can create more reusable prefabs. You can express gameplay concepts: the “health” of a player, the “value” of a coin, the “speed” of an enemy, etc.