#check if the player got hit by a bullet player1.check_on_hit(player2) player2.check_on_hit(player1) #display health information player1.display_health_bar(screen) player2.display_health_bar(screen) #move obstacle obstacle1.obstacleMove() obstacle2.obstacleMove() obstacle3.obstacleMove() #check obstacle bounds obstacle1.obstacleInBound() obstacle2.obstacleInBound() obstacle3.obstacleInBound() #check if player got hit by an obstacle obstacle1.obstacleOnHit(player1) obstacle1.obstacleOnHit(player2) obstacle2.obstacleOnHit(player1) obstacle2.obstacleOnHit(player2) obstacle3.obstacleOnHit(player1) obstacle3.obstacleOnHit(player2) #display obstacles obstacle1.obstacleScreenPosition(screen) obstacle2.obstacleScreenPosition(screen) obstacle3.obstacleScreenPosition(screen)