How do i detect if my character collided with an enemy and closes the game if it hits 3 times

后端 未结 0 844
灰色年华
灰色年华 2021-01-13 04:50

I want to make it kind of like a life system so that if it collides with the enemy 3 times it will quit


pygame.init()

screen_width = 800
screen_height = 600         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题