top of page

état du code 19/01/2024 

global scene

scene = 1

 

def setup():   

size(1440,780)   

frameRate(7)   

printArray(PFont.list())   

f = createFont("Arial", 20)   

textFont(f)       

global img0   

img0= loadImage("Scene_0.jpeg")   

global img1   

img1=loadImage("Scene_1.jpeg")            

 

def draw():       

if scene==1:       

accueil()   

if scene==2:       

scene_2()        

 

def accueil():   

img0.resize(1440,780)   

image(img0, 0,0)   

noStroke();   

fill(255,255,255,127)       

rect(650,600,100,50);   

textSize(25)   

fill(0)   

text("Jouer",665,630)   

stroke(255,204,51);   

fill(0,0,255)   

textSize(100)   

text("Pokemon : Trainer Contest",120,200);       

if (mousePressed==True):       

     if (mouseButton == RIGHT):           

          if mouseX<750:               

               if mouseX>650:                   

                    if mouseY<650:                       

                         if mouseY>600:                           

                              scene +=1                           

                              print(scene)                            

def scene_2():   

img1.resize(1440,780)   

image(img1, 0,0)

NSI

Leplusbeausite

© 2023 par Loïs Guillerme. Créé avec Wix.com

bottom of page