def draw():
    global game
    screen.clear()
    screen.fill('#cff4f7')
    for i in range(((screen.width // 70) + 1)):
        screen.blit('grass', ((i * 70), (screen.height - 70)))
    for cloud in clouds:
        cloud.draw()
    for obstacle in obstacles:
        obstacle.draw()
    screen.draw.text(align_text_time(game_time), midright=((screen.width - 50), 50), fontname='roboto_mono_bold', color='orange', fontsize=45)
    player.draw()
    if (game == 0):
        screen.draw.text('Wcisnij spacje', center=((screen.width / 2), (screen.height / 2)), color='orange', fontsize=60)
    if (game == 2):
        screen.draw.text('Koniec gry', center=((screen.width / 2), (screen.height / 2)), color='red', fontsize=60)
        screen.draw.text('Wcisnij spacje aby zagrac jeszcze raz', center=((screen.width / 2), (screen.height - 200)), color='red', fontsize=30)
def draw():
    global game
    screen.clear()
    screen.fill('#cff4f7')
    for i in range(((screen.width // 70) + 1)):
        screen.blit('grass', ((i * 70), (screen.height - 70)))
    for cloud in clouds:
        cloud.draw()
    for obstacle in obstacles:
        obstacle.draw()
    screen.draw.text(align_text_time(game_time), midright=((screen.width - 50), 50), fontname='roboto_mono_bold', color='orange', fontsize=45)
    player.draw()
    if (game == 0):
        screen.draw.text('Wcisnij spacje', center=((screen.width / 2), (screen.height / 2)), color='orange', fontsize=60)
    if (game == 2):
        screen.draw.text('Koniec gry', center=((screen.width / 2), (screen.height / 2)), color='red', fontsize=60)
        screen.draw.text('Wcisnij spacje aby zagrac jeszcze raz', center=((screen.width / 2), (screen.height - 200)), color='red', fontsize=30)