main.py
def on_draw(self):
        """
        Clears the screen and draws sprites
        """
        # clear the window
        arcade.start_render()
        
        # draw all sprites
        self.paddle_list.draw()
        self.brick_list.draw()
        self.ball_list.draw()
        self.wall_list.draw()

        arcade.draw_text(f'Score: {self.score}', 30, 15, arcade.color.BLACK, 12, font_name='arial')
        arcade.draw_text(f'Lives: {self.lives}', SCREEN_WIDTH-90, 15, arcade.color.BLACK, 12, font_name='arial')

        if self.game_over:
            arcade.draw_text('Game Over', SCREEN_WIDTH/2 - 115, 150, arcade.color.BLANCHED_ALMOND, 30, font_name='arial', bold=True)

        Clears the screen and draws sprites
        
Clears the screen and draws sprites
Clears the screen and draws sprites
def on_draw(self):
        arcade.start_render()
        self.paddle_list.draw()
        self.brick_list.draw()
        self.ball_list.draw()
        self.wall_list.draw()
        arcade.draw_text(f'Score: {self.score}', 30, 15, arcade.color.BLACK, 12, font_name='arial')
        arcade.draw_text(f'Lives: {self.lives}', SCREEN_WIDTH-90, 15, arcade.color.BLACK, 12, font_name='arial')
        if self.game_over:
            arcade.draw_text('Game Over', SCREEN_WIDTH/2 - 115, 150, arcade.color.BLANCHED_ALMOND, 30, font_name='arial', bold=True)
def on_draw ( self ) : arcade . start_render ( ) self . paddle_list . draw ( ) self . brick_list . draw ( ) self . ball_list . draw ( ) self . wall_list . draw ( ) arcade . draw_text ( f'Score: {self.score}' , 30 , 15 , arcade . color . BLACK , 12 , font_name = 'arial' ) arcade . draw_text ( f'Lives: {self.lives}' , SCREEN_WIDTH - 90 , 15 , arcade . color . BLACK , 12 , font_name = 'arial' ) if self . game_over : arcade . draw_text ( 'Game Over' , SCREEN_WIDTH / 2 - 115 , 150 , arcade . color . BLANCHED_ALMOND , 30 , font_name = 'arial' , bold = True )
Clears the screen and draws sprites
Clears the screen and draws sprites
"""
        Clears the screen and draws sprites
        """ # clear the window # draw all sprites
self