You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rab...@googlegroups.com
Hi all!
How would I make a project where I would render about 300 sprites on a screen and cull those offscreen? Also considering scrollx and y from keyboard. I'm using pyglet.
Thanks.
Aj.
Ryexander
unread,
Dec 17, 2013, 1:37:54 PM12/17/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rab...@googlegroups.com
I achieved this by maintaining a Numpy array of the sprites and using array slicing and masking to remove off screen sprites.
I maintain a parallel array of true false values for if the corresponding sprite in on or off the screen and then use it as a mask for the numpy array.