Nov-11-2019, 10:00 PM
I don't see that verbose is necessarily worse, especially if you are looking for clarity. I don't see that it's less clear, either. If I am reading the Pygame docs correctly, you could do a list comprehension:
self.bullets = Group(*[bullet for bullet in self.bullets if bullet.rect.bottom <= 0])
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures