📜  python 如何制作运动控制器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:55.607000             🧑  作者: Mango

代码示例1
if keyboard.left:
        Player.x = Player.x - 2
    elif keyboard.right:
        Player.x = Player.x + 2
    elif keyboard.up:
        Player.y = Player.y - 2
    elif keyboard.down:
        Player.y = Player.y + 2