Compare commits
2 Commits
86129dcfa6
...
41c1916344
Author | SHA1 | Date | |
---|---|---|---|
41c1916344 | |||
00275fbfaf |
@ -17,11 +17,11 @@ def creer_ananas(pos_x, pos_y):
|
||||
ananas = pygame.sprite.Sprite()
|
||||
pygame.sprite.Sprite.__init__(ananas)
|
||||
ananas.image = pygame.image.load("ananas.png").convert_alpha()
|
||||
ananas.image = pygame.transform.scale(ananas.image,[200, 100])
|
||||
ananas.image = pygame.transform.scale(ananas.image,[200, 100])
|
||||
ananas.rect = ananas.image.get_rect()
|
||||
ananas.rect.x = pos_x
|
||||
ananas.rect.y = pos_y
|
||||
|
||||
|
||||
return ananas
|
||||
|
||||
pygame.init()
|
||||
@ -53,24 +53,32 @@ texte.rect.centerx = fenetre.get_rect().centerx
|
||||
texte.rect.centery = fenetre.get_rect().centery
|
||||
liste_des_sprites.add(texte)
|
||||
|
||||
texte2 = pygame.sprite.Sprite()
|
||||
pygame.sprite.Sprite.__init__(texte2)
|
||||
texte2.image = police.render("Vous vous trouver dans l’engin SU-PER12. Votre mission est d’éliminer le plus d’ennemis possible!", 1, (10, 10, 10),(255, 90, 20))
|
||||
texte2.rect = texte2.image.get_rect()
|
||||
texte2.rect.centerx = 50
|
||||
texte2.rect.centery = 70
|
||||
liste_des_sprites.add(texte2)
|
||||
|
||||
texte3 = pygame.sprite.Sprite()
|
||||
pygame.sprite.Sprite.__init__(texte3)
|
||||
texte3.image = police.render("Pour ce faire, appuyez sur « espace » pour tirer et bougez la souris pour manoeuvrer votre SU-PER12!", 1, (10, 10, 10),(255, 90, 20))
|
||||
texte3.rect = texte3.image.get_rect()
|
||||
texte3.rect.centerx = 60
|
||||
texte3.rect.centery = 80
|
||||
liste_des_sprites.add(texte3)
|
||||
|
||||
texte4 = pygame.sprite.Sprite()
|
||||
pygame.sprite.Sprite.__init__(texte4)
|
||||
texte4.image = police.render("Bonne chance!", 1, (10, 10, 10),(255, 90, 20))
|
||||
texte4.rect = texte4.image.get_rect()
|
||||
texte4.rect.centerx = 70
|
||||
texte4.rect.centery = 90
|
||||
liste_des_sprites.add(texte4)
|
||||
|
||||
texte5 = pygame.sprite.Sprite()
|
||||
pygame.sprite.Sprite.__init__(texte5)
|
||||
texte5.image = police.render("ALERTE, PLANETE TERRE EST SOUS ATTAQUE", 1, (10, 10, 10),(255, 90, 20))
|
||||
texte5.rect = texte5.image.get_rect()
|
||||
texte5.rect.centerx = 80
|
||||
|
Loading…
x
Reference in New Issue
Block a user