Computer science is developing very fast today, both software and hardware. Now computer is not only a terminal tool for computing, email-sending, internet surfing, but also a supporter for multiple dimensional virtual worlds. Although the current technique of virtual world is mostly used for entertainments, with limited computer capabilities and simple relevance to the real world, virtual world will be used wildly when computer's capability expands. It makes us easier to understand the fundamentals of the real world, with the scientific simulation of virtual worlds. It also provides us better chance to prediction and plan-making. This paper describes the design and implementation of a game engine named Vec, which code is accessory of this paper. It bases more on reality simulating. By applying the game engine, various types of games can be made, on PC platform, Windows. The game types include Real-Time Strategy Game (RTS), Role-Playing Game (RPG), Strategy Game (SLG), Action Game (ACT), First Personal Shooting Game (FPS) and Adventure Game (AVG).The Vec Game Engine contains 2 parts called Game Scene System and Game Object System. The scene system provides basic support for the game, configures camera view for the window, creates time and space of the game, and provides lighting and particle effects. The object system includes kinematics system, path finding algorithm, finite state machine and 3D model support. The Vec Game Engine has clear layers of components, powerful class definitions, flexible interfaces, thus bringing excellent performance and extensibilities. |