Journal

I created a sprite for a box. Using a random locator and rect codes.

 

maxresdefault.jpg

 

 

 

for i in range(50):
 
block = Block(BLACK, 20, 15)
  
block.rect.x = random.randrange(screen_width)
block.rect.y = random.randrange(screen_height)
 
block_list.add(block)
all_sprites_list.add(block)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s