代码之家  ›  专栏  ›  技术社区  ›  yoshisuper robot

为什么当你使用pygame.mouse.get_pos时,它总是给我0,0

  •  0
  • yoshisuper robot  · 技术社区  · 2 年前

    我想知道如何编写代码来检测鼠标点击精灵的情况。例如:

    if #Function that checks for mouse clicked on Sprite:
        print ("You have opened a chest!")
    
    0 回复  |  直到 13 年前