You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
398 B

function keyPressed(){
switch(keyCode){
case 68://D
debug = !debug;
break;
}
if (keyCode != 116) return false; //F5
}
function mouseDragged(){
}
function mouseClicked(){
if (getDesert(mouseX - 50) < getWater(mouseX - 50, true) && getDesert(mouseX + 50) < getWater(mouseX + 50, true)){
palms.push(new Palm(mouseX));
}
}
function mousePressed(){
}
function mouseReleased(){
}