SHARE
TWEET

wtf

KreeZe Nov 17th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #bibliothèque
  2. import pygame
  3. from random import*
  4.  
  5. #initialisation pygame+fenetre+utilitaire
  6. pygame.display.set_caption("Cluedo par Yamis")
  7. pygame.init()
  8. blank_color = (255, 255 ,255)
  9. resolution = (1368, 768)
  10. fenetre = pygame.display.set_mode(resolution)
  11. font = pygame.font.SysFont(None, 24)
  12. fenetre.fill(blank_color)
  13.  
  14. #fermer la fenetre
  15. def fin():
  16.     launched = True
  17.     while launched:
  18.         for event in pygame.event.get():
  19.             if event.type == pygame.QUIT:
  20.                 launched = False
  21.  
  22.     if event.type == pygame.QUIT :
  23.         pygame.quit()
  24.  
  25. def image2(p,x,y):
  26.  
  27.     p = pygame.image.load(p)
  28.     p = pygame.transform.scale(p, (300, 300))
  29.     p.convert()
  30.     fenetre.blit(p, [x, y])
  31.  
  32.  
  33.  
  34.  
  35. image2("cluedo.png",150,100)
  36. fin()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top