所以这是代码:
from ursina import *
app = Ursina()
player = Entity(model='cube', color=color.orange, scale_y=2)
def update(): # update gets automatically called.
player.x += held_keys['d'] * .1
player.x -= held_keys['a'] * .1
player.y += held_keys['w'] * .1
player.y -= held_keys['s'] * .1
app.run()
它给了我这个错误:
E:\Python\ursina\venv\Scripts\python.exe E:/Python/ursina/main.py
package_folder: E:\Python\ursina\venv\lib\site-packages\ursina
asset_folder: E:\Python\ursina
blender_paths:
{}
screen resolution: (1366, 768)
Known pipe types:
wglGraphicsPipe
(3 aux display modules not yet loaded.)
size; LVector2f(1092, 614)
注意:代码运行得很好,但我只是有点困惑 :) 感谢您回答我的愚蠢问题