pygame/pygame

elegant way for rendering text of multiple lines

Closed this issue · 3 comments

Based on Pygame, I write a simple typing game that can be found here.

However, the program consumes CPU a lot for dynamically rendering the text of multiple lines, since it makes it by splitting the text into many single words!

Is there a more efficient way in my situation?
AND
I strongly suggest that Pygame should support NEWLINE in text !!!

Hello.

have a look at ptext by @cosmologicon
https://github.com/cosmologicon/pygame-text

It's awesome!

Hello.

have a look at ptext by @cosmologicon
https://github.com/cosmologicon/pygame-text

It's awesome!

Well, I give a glimpse to the source code... it seems that at least that would not be less complicated than what I did...

There are lots of pygame support packages that support this now such as pygame-text, thorpy or pygame_gui.