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

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.

主站蜘蛛池模板: 保亭| 博白县| 汉阴县| 陕西省| 布尔津县| 平顺县| 来安县| 洞头县| 芮城县| 吴旗县| 施甸县| 晋江市| 金坛市| 万荣县| 金川县| 阳山县| 张家港市| 乌兰浩特市| 林甸县| 临洮县| 新竹市| 濮阳县| 道孚县| 图木舒克市| 龙南县| 灵武市| 乌鲁木齐县| 上犹县| 临武县| 连南| 新巴尔虎右旗| 什邡市| 花莲市| 阿瓦提县| 定陶县| 洛扎县| 科尔| 朝阳区| 大丰市| 光泽县| 苍山县|