1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
import pygame as pg #j'ai juste racourci le mot pygame en pg
pg.init()
from pygame.locals import*
pg.event.get()
import os
os.chdir(r"C:\Users\Maison\Desktop\le projet")
icon= pg.image.load("icone.png") #ca marche pas
purple = (200,0,200)
bicolor = (100,200,200)
running = True
while running:
for event in pg.event.get():
if event.type == pg.KEYDOWN:
running = False
screen = pg.display.set_mode((600,420))
fond = pg.image.load("21.jpg").convert()
screen.blit(fond, (0,0))
pg.display.set_caption("benjienterprise")
myfont = pg.font.SysFont("MV boli", 35)
label=myfont.render("benjienterprise",1,purple)
screen.blit(label,(10,10))
perso = pg.image.load("perso 12.png").convert_alpha()
screen.blit(perso, (0,50))
pg.display.flip() #rafraichire
screen = pg.display.set_mode((650,650))
fond = pg.image.load("42.jpg").convert()
screen.blit(fond, (0,0))
fond2=pg.image.load("ecran bon (3).jpg")
screen.blit(fond2, (0,325))
myfont = pg.font.SysFont("MV boli", 35)
label=myfont.render("pour repondre taper 1 , 2 ou 3",1,bicolor)
screen.blit(label,(40,280))
pg.display.flip()
#le gif
#initialisation de la jaue d'argent ou pourcetage
if gain==1:
nouv_val = objetbarre.barreprogression.get_fraction() + 0.1
if perte==1:
nouv_val = objetbarre.barreprogression.get_fraction() - 0.1
#les question
infinity = True #on choisi la reponse
while infinity:
for event in pg.event.get():
if event.type == pg.K_1:
a
if event.type == pg.K_2:
b
if event.type == pg.K_3:
c |
Partager