Ursina 引擎未加载屏幕

Ursina engine not loading screen

我想在 ursina 中制作游戏,但实体不会加载并且 window 会立即关闭,我也安装了 pip。代码如下

from ursina import *

app = Ursina()

test_square = Entity(model = 'circle', color = color.red)

app.run

它输出这个。

Known pipe types:
  wglGraphicsPipe
(3 aux display modules not yet loaded.)
:pnmimage:png(warning): iCCP: known incorrect sRGB profile

您的代码应该是这样的:

from ursina import *

app = Ursina()

test_square = Entity(model = 'circle', color = color.red)

app.run()

正常,请等待几秒钟以加载屏幕。