左宁
摘要:如今,电脑游戏已经成为走进人们生活中的并且成为被广为接受的一种娱乐方式。近几年来游戏这个产业发展越来越迅速。而目前比较流行的3D游戏的核心都是游戏引擎,游戏引擎集成了所有的底层技术,给研发人员提供了更高效的开发平台,可以使得研发人员不必花过多的精力去实现诸如内存管理、图像渲染、碰撞检测等等的底层细节,而是直接使用引擎提供的借口来进行游戏开发,从而大大缩短了开发周期。本文使用TORQUE游戏开发引擎及其脚本技术,实现了3D游戏环境下,人物的武器系统。实现了给玩家角色装备武器和更换武器的功能,这些功能在目前比较主流的FPS类型游戏中较为普遍。同时在所需功能的实现过程中分析TOEQUE脚本语言的特点,也进一步的研究学习TORQUE引擎的使用。
关键词:TORQUE游戏开发引擎;脚本语言;武器系统
中图分类号:TP391文献标识码:A文章编号:1009-3044(2012)07-1632-05
Weapon System to Achieve Based on TGE and Script Language
ZUO Ning
(Lanzhou Jiaotong University, Lanzhou 730070, China)
Abstract: Today, computer games have become into peoples lives and become widely accepted as a form of entertainment. In recent years more and more rapid development of the industry game. At present, the more popular 3D games are the core game engine, game engine incorporates all of the underlying technology, to provide a more efficient R & D development platform, developers can make without spending too much energy to achieve, such as memory management, image rendering, collision detection, and so low-level details, but direct use of the engine to provide an excuse for game development, thereby greatly reducing the development cycle. This article uses TORQUE game development engine and scripting techniques to achieve a 3D gaming environment, the characters weapons systems. To the role players to achieve the replacement of weapons, equipment, weapons and features in the current, more mainstream FPS type games are more common. At the same time to achieve the desired functionality of the process of analysis TOEQUE scripting language features, and further research study TORQUE engine use.
Key words: TGE; Script Language; Weapon System
从1992年第一个游戏引擎:3D Realms公司开发的Wolfenstein 3D问世至今,3D游戏开发引擎的开发已经有了将近20年的发展历史,在这20年见,世界上出现了很多优秀的游戏开发引擎同时在这些引擎的基础上也诞生了很多伟大的游戏,比如id Software DOOM引擎下诞生的《毁灭战士》、采用《帝国时代2》(Age of Empires)引擎制作的《星球大战:银河战场》等等。简单地说,游戏开发引擎就是“用于控制所有游戏功能的主程序,从计算碰撞、物理系统和物体的相对位置,到接受玩家的输入,以及按照正确的音量输出声音等等。”
Torque Game Engine简称TGE,是Garage Game公司……