3D Game Engine Design and Implementation (15)

xiaoxiao2021-03-06  65

Today's code is written in the logic part of the game, mainly achieve the realization of game logic, such as how the world is rendering, of course, these are defined according to the map file, according to the information saved by the BSP tree, you can render the field. Out. This will load the needed model. Whenever the player changes the input and install, it will work out different responses. For example, the walking system is that when the player presses different directions, it can be a certain speed. Move forward, the movement here is achieved by the vector. When the direction is changed, it is rotated around the different shafts.

At the same time, I join the rendering interface in the MM3DGame module, let this can be rendered casually. There are many problems to test, such as using the vertex buffer, can be used directly, or use the vertex buffer index. Continue Coding .. ...

转载请注明原文地址:https://www.9cbs.com/read-89373.html

New Post(0)