jabela

Whackamole Part 1

Dec 17th, 2015
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #Python 3.4.3 with Pygame
  2. import pygame
  3. import random
  4. pygame.init()
  5. pygame.display.set_caption('Crash!')
  6. pygame.mixer.music.load('Slap.wav')
  7.  
  8. #variables
  9. window = pygame.display.set_mode((600, 600))
  10. rectplace = pygame.draw.rect(window, (0, 0, 0),(0, 0, 100, 100))
  11. counter = 200000
  12. randx = random.randrange(100, 500)
  13. randy = random.randrange(100, 500)
  14. running = True
Add Comment
Please, Sign In to add comment