def setup():
size(1152, 648)
global img
global img2
global img3
img = loadImage("menuplancheavoileexemple1.png") # Load the image into the program
img2 = loadImage("gameplayexemple.jpg") # Load the image into the program
img3 = loadImage("credit.png")
#printArray(PFont.list())
#f = createFont("Corbel", 20)
#textFont("Comic Sans MS")
#frameRate(7)
def draw():
image(img, 0, 0)
if mousePressed== True:
if mouseButton == LEFT:
if mouseX<650:
if mouseX>500:
if mouseY<500:
if mouseY>400:
print(image(img3, 0, 0))
if mouseX<650:
if mouseX>500:
if mouseY<350:
if mouseY>200:
print(image(img2, 0, 0))
# def draw():
# #Displays the image at its actual size at point (0,0)
# global scene
# if scene==1:
# menu()
# if scene ==2:
# gameplay()
# if (mousePressed == True):
# if (mouseButton == RIGHT):
# if mouseX<1000:
# if mouseX>950:
# if mouseY<550:
# if mouseY>500:
# scene +=1
# print(scene)
# def menu():
# image(img, 0,0)
# #fill(255)
# #rect(240,5,650,270)
# #fill(25,56,89)
# def gameplay():
# image(img2, 0,0)
# #fill(255)
# #rect(240,5,650,270)
# #fill(25,56,89)