摘要:
先上图,看看引擎效果(还不错吧):引擎本身由c++编写,使用python或者c++调用(pythoner有想开发3D游戏的,可以看看咯)。下面简单的贴一下上面图片的代码: 1 from direct.showbase.ShowBase import ShowBase #基本显示模块 2 from math import pi,sin,cos 3 from direct.task import Task#任务模块 4 from direct.actor.Actor import Actor#动态模块 5 class MyApp(ShowBase): 6 def __init__(self... 阅读全文