Newer
Older
boolean isSettingsClick = false;
boolean isPlayGame = false;
boolean isSettings = false;
boolean isDead = false;
void draw() {
isPlayGame = false;
isSettings = false;
isDead = false;
background(255);
rectMode(CENTER);
fill(255);
rect(width/3, height/2 + 100, 300, 100);
rect(width-width/3, height/2 + 100, 300, 100);
textAlign(CENTER);
comic = createFont("COMIC.TTF", 80);
textFont(comic);
fill(0);
text("Jouer", width/3, height/2+125);
comic = createFont("COMIC.TTF", 55);
textFont(comic);
text("Paramètres", width-width/3, height/2+125);
if (mousePressed) {
if (mouseX < width/2 && mouseY > height/2 + 50 && mouseY < height/2 + 150) {// Bouton Gauche
if (mouseX > width/2 && mouseY > height/2 + 50 && mouseY < height/2 + 150) {// Bouton droit
isSettings = true;