摘要
就面向对象的程序设计而言,基类的设计至关重要,在游戏软件的开发中,"精灵"的设计是关键的步骤。首先,可以创建精灵的基类,再通过继承得到子类,如战机类、子弹类、爆炸效果类等。该文意在通过游戏的开发过程,阐述面向对象的设计理念。
In the case of object-oriented programming, the design of the base class is very important. As we develop a game software,the design of the sprite is a key step. First, we may create a base class of sprite,then we get the derived class by inheritance, for example: fighter class, bullet class, explosion effect class etc. The intention of writing this article is to elaborate the design conception of object-oriented via the game development process.
出处
《电脑知识与技术》
2016年第3X期138-141,共4页
Computer Knowledge and Technology