player2.shoot_bullet(screen) #clear all the bullets that are outside the bounds player1.clean_bullet() player2.clean_bullet() #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)