check_events()missing 1 required positional arguments :'bullets'

check_events()missing 1 required positional arguments :'bullets'

bullets=Group()

游戏主循环

while True:

    gf.check_events(ai_setting,screen,ship,bullets)

def check_events(event,ai_setting,screen,ship,bullets):
#监视键盘与鼠标事件
for event in pygame.event.get():

 if event.type==pygame.QUIT :

sys.exit()

#相应键盘与鼠标事件

elif event.type==pygame.KEYDOWN:

check_keydown_events(event,ai_setting,screen,ship,bullets)

以上是 check_events()missing 1 required positional arguments :'bullets' 的全部内容, 来源链接: utcz.com/a/161125.html

回到顶部