top of page

scene=1

def setup():
    size(1400,700)
    global img
    global img2
    global img3
    global img4
    global img5
    global img6
    global img7
    img = loadImage("BG Bleu.jpg")
    img2 = loadImage("dossier-windows.png")
    img3 = loadImage("Firefox_logo,_2019.png")
    img4 = loadImage("Microsoft_Edge_logo_(2019).png")
    img5 = loadImage("Barrre d'outils.png")
    img6 = loadImage("unzip.png")
    #printArray(PFont.list())
    f = createFont("dogica", 10)
    textFont(f)
    frameRate(3)


def draw():
    global scene
    if scene==1:
        prem()
        if (mousePressed == True):
            if (mouseButton == LEFT):
                if mouseX<1200:
                    if mouseX>200:
                        if mouseY<600:
                            if mouseY>450:
                                scene +=1
                                print(scene)
    if scene==2:
        deux()
        if (mousePressed == True):
            if (mouseButton == LEFT):
                if mouseX<750:
                    if mouseX>650:
                        if mouseY<370:
                            if mouseY>270:
                                scene +=1
                                print(scene)
        
    if scene==3:
        trois()
        if (mousePressed == True):
            if (mouseButton == LEFT):
                if mouseX<300:
                    if mouseX>200:
                        if mouseY<100:
                            if mouseY>50:
                                scene +=1
                                print(scene)
    if scene==4:
        quatre()
        
def load():
    fill(100)
    rect(200,400,100,50)
    i=0
    for i in range (1000):
        fill(0,255,0)
        rect (200,400,i,50)
        delay(1000)

def prem():
    fill(0,47,167)
    image (img,0,0)
    image (img2,10,0,60,60)
    image (img3,10,90,60,60)
    image (img4,12,185,55,55)
    image (img5,0,670,1400,500)
    rect  (200,450,1000,150)
    fill  (255,255,255)
    textSize(15)
    text(">>>Cliquer sur la boite pour continuer",940,590)
    fill  (3, 34, 76)
    textSize(30)
    text("Bienvenue a l ecran d'accueil de votre ordinateur",370,545)
    fill  (255,255,255)
    textSize(10)
    text("Explorateur de fichiers",10,80)
    textSize(10)
    text("Mozilla Firefox",12,165)
    textSize(10)
    text("Microsoft Edge",12,260)
    
def deux():
    fill(0,47,167)
    image (img,0,0)
    image (img2,10,0,60,60)
    image (img3,10,90,60,60)
    image (img4,12,185,55,55)
    image (img5,0,670,1400,500)
    image (img6,650,270,65,80) 
    rect  (200,450,1000,150)
    fill  (255,255,255)
    textSize(15)
    text("Fichier a telecharger",620,363)
    textSize(15)
    text(">>>Cliquer sur la boite pour continuer",940,590)
    fill  (3, 34, 76)
    textSize(30)
    text("Vous devez seulement telecharger ce fichier",390,545)
    fill  (255,255,255)
    textSize(10)
    text("Explorateur de fichiers",10,80)
    textSize(10)
    text("Mozilla Firefox",12,165)
    textSize(10)
    text("Microsoft Edge",12,260)
    
def trois():
    fill(0,47,167)
    image (img,0,0)
    image (img2,10,0,60,60)
    image (img3,10,90,60,60)
    image (img4,12,185,55,55)
    image (img5,0,670,1400,500)
    image (img6,650,270,65,80) 
    fill  (255,255,255)
    textSize(15)
    text("Fichier a telecharger",620,363)
    fill  (255,255,255)
    textSize (10)
    text("Explorateur de fichiers",10,80)
    text("Mozilla Firefox",12,165)
    text("Microsoft Edge",12,260)
    fill (255,255,240)
    rect (400,200,400,200)
    fill (0,0,0)
    textSize(17)
    text ("Souhaitez-vous reellement telecharger ce fichier ?",415,230)
    text ("Type de fichier: inconnu",500,320)
    image (img6,570,230,65,80)
    fill (255,255,240)
    rect (550,350,100,30)
    fill (0,0,0)
    text ("Oui.",585,373)    

def quatre():
    fill(0,47,167)
    image (img,0,0)
    image (img2,10,0,60,60)
    image (img3,10,90,60,60)
    image (img4,12,185,55,55)
    image (img5,0,670,1400,500)
    image (img6,650,270,65,80) 
    fill  (255,255,255)
    textSize(15)
    text("Fichier a telecharger",620,363)
    fill  (255,255,255)
    textSize (10)
    text("Explorateur de fichiers",10,80)
    text("Mozilla Firefox",12,165)
    text("Microsoft Edge",12,260)
    fill (255,255,240)
    rect (400,200,400,200)
    
    

bottom of page