2024-04-25 11:53:12 发布
网友
每当我让玩家从地面跳到一个方块(瓷砖)上时,它只会跳,但不会落在那个方块(瓷砖)上。我尝试了以下代码:
hits = pygame.sprite.spritecollide(hero, platforms, False) if hits: hero.y = hits[0].rect.top
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐