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

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.

主站蜘蛛池模板: 潞城市| 阿克苏市| 嘉黎县| 龙山县| 鄄城县| 浦东新区| 河北省| 五寨县| 开江县| 卢氏县| 汽车| 开阳县| 遂溪县| 上高县| 寻甸| 合山市| 阜平县| 常山县| 治多县| 翼城县| 武冈市| 伊吾县| 大埔区| 当涂县| 徐闻县| 山西省| 普兰店市| 凯里市| 昌都县| 静宁县| 高平市| 中西区| 喀什市| 横山县| 建水县| 石渠县| 米脂县| 临清市| 龙游县| 嘉义市| 淮南市|