[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Re: Blit method bug?



Thank's both of you! I didn't know that pygame uses 16 bits integers (I
thought it was 32 bits every integer i put in the blit coordinates).

I already thought to blit only images which the rectangle of it is at least
inside the screen resolution.
(Excuse me for my english).

For example (How do i input code by the way?):

[code]
for sprite in all_game_objects:
    if sprite.onScreen():
        sprite.render(self.pygame_screen_surface)
[/code]




--
View this message in context: http://pygame-users.25799.x6.nabble.com/Blit-method-bug-tp3039p3042.html
Sent from the pygame-users mailing list archive at Nabble.com.