|
|
@ -7,7 +7,7 @@ return Math.floor(Math.random() * (max - min) + min);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function openWindow(c) {
|
|
|
|
function openWindow(c) {
|
|
|
|
window.open(`http://www.google.com/maps/place/${c}`, "_self");
|
|
|
|
window.open(`http://www.google.com/maps/place/${c}`,'_top');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var x = randomNumber(null,5);
|
|
|
|
var x = randomNumber(null,5);
|
|
|
@ -253,6 +253,8 @@ function mouseReleased(){
|
|
|
|
capture = false;
|
|
|
|
capture = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseClicked(){
|
|
|
|
function mouseClicked(){
|
|
|
|
// console.log('mouseClicked');
|
|
|
|
// console.log('mouseClicked');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -472,12 +474,14 @@ function pong() {
|
|
|
|
text(coord , width/2, height/2);
|
|
|
|
text(coord , width/2, height/2);
|
|
|
|
fill(0);
|
|
|
|
fill(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mouseReleased){
|
|
|
|
if(mouseReleased){
|
|
|
|
setTimeout(function() {
|
|
|
|
setTimeout(function() {
|
|
|
|
|
|
|
|
|
|
|
|
openWindow(coord);
|
|
|
|
openWindow(coord);
|
|
|
|
|
|
|
|
|
|
|
|
}, 5000 );
|
|
|
|
}, 3000 );
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|