Advertisement
KreeZe

wtf

Nov 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement