liveBook · Manning

Extensibility

As explained in High Performance Unity Game Development

The property of software that allows new capabilities or content to be added with limited changes to existing code.

Extensibility is the ability to add capabilities without letting the effort of changing existing code grow unpredictably. A data-oriented approach organizes features around the data they need and the transformations they perform; integration and testing still take effort as a game grows. section 1.4 section 1.1

When adding a gameplay feature:

  • Identify the required data, the logic that transforms it, and how that data flows through the game. section 1.1
  • Avoid assuming every new behavior must fit an expanding network of enemy types or behavior objects. Object-oriented reuse can still help when relationships are predictable. section 1.4

Combining tile behaviors

A tile might merge, refuse to merge, duplicate another tile, explode, or teleport—and may combine several behaviors. Inheritance can struggle with these combinations; composition can create more behavior objects and relationships to coordinate. Expressing a feature through its data and transformations offers another way to extend the game. section 1.4

Figure 1.29 In a data-oriented architecture, the core effort required to add comparable features can remain relatively consistent because each feature is expressed through explicit data and transformations. Project-wide integration and testing can still add cost as the game grows. This is a conceptual illustration, not measured data.

This conceptual figure contrasts feature effort in a data-oriented architecture: core effort can stay relatively consistent, while integration and testing may still add cost. section 1.4

How High Performance Unity Game Development covers it

How deep it goes
Explains feature changes through required data and transformations, while noting that integration and testing still add cost.
Examples
Contrasts tile behaviors such as merging, duplication, explosions, and teleportation, and cites feature work on Nova Legends.
What you can do after
Apply data-oriented design by identifying a feature’s data, transformations, and flow instead of extending behavior-object relationships.
How it connects
Connects extensibility with data-oriented design, object-oriented programming, inheritance, composition, and data flow.

Also explained in

Compare how 8 books explain extensibility →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of High Performance Unity Game Development. The section links point to the parts of the book it draws on.