官术网_书友最值得收藏!

Defining resources

In game development, the term resource denotes an external component, which the application loads during runtime. Another often-used term for a resource is asset.

Mostly, resources are heavyweight multimedia items, such as images, music themes, or fonts. "Heavyweight" refers to the fact that those objects occupy a lot of memory, and that operations on them, especially copying, perform slowly. This affects the way we use them in our application, as we try to restrict slow operations on them to a minimum.

Non-multimedia items such as scripts that describe the in-game world, menu content, or artificial intelligence are also considered resources. Configuration files containing user settings such as the screen resolution and the music volume are good examples of resources as well. However, when we mention resources in the book, we mostly refer to multimedia resources.

Resources are usually loaded from a file on the hard disk. Although being the most common approach, it is not the only one—other possible examples are the RAM or the network.

主站蜘蛛池模板: 会同县| 淄博市| 平度市| 田东县| 纳雍县| 龙州县| 南陵县| 松原市| 玉树县| 喀喇沁旗| 包头市| 衡东县| 留坝县| 彰化县| 广丰县| 临夏县| 瑞安市| 太仓市| 成都市| 腾冲县| 织金县| 常德市| 名山县| 如东县| 富阳市| 甘肃省| 沾化县| 黄石市| 盐城市| 巴林右旗| 桂平市| 南靖县| 宁城县| 平远县| 平定县| 广东省| 贺州市| 宜兰县| 和林格尔县| 隆回县| 明溪县|