0

I'm creating screen savor in pygame where I've rendered the text that looks like this :

enter image description here

but after "Remember to get up" I need to add line break and Escape Sequences are not working

Here is my code:

text_font = pygame.font.Font("Poppins-SemiBold.ttf", 40)
textX = 10
textY = 10

def water_text(x, y):
    
    text = text_font.render("Hey It's been an hour, Remember to get up and drink some water", True, (255,255,255))
    window.blit(text, (x,y))

while running < 1500:
    running += 1
    for event in pygame.event.get():
        if event.type == QUIT:
            running = False

    water_text(textX, textY)
    water_timer(timerL, timerB)


    pygame.display.update()


pygame.quit()
Kirito-Kun
  • 83
  • 8

0 Answers0