|
|
@ -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);
|
|
|
@ -20,7 +20,7 @@ console.log(x)
|
|
|
|
|
|
|
|
|
|
|
|
function preload() {
|
|
|
|
function preload() {
|
|
|
|
|
|
|
|
|
|
|
|
footsteps = document.getElementById("footsteps");//walking
|
|
|
|
footsteps = document.getElementById("footsteps");//walking
|
|
|
|
PNF1 = document.getElementById("PNF1");
|
|
|
|
PNF1 = document.getElementById("PNF1");
|
|
|
|
PNF2 = document.getElementById("PNF2");
|
|
|
|
PNF2 = document.getElementById("PNF2");
|
|
|
|
LOBS1 = document.getElementById("LOBS1");
|
|
|
|
LOBS1 = document.getElementById("LOBS1");
|
|
|
@ -253,6 +253,8 @@ function mouseReleased(){
|
|
|
|
capture = false;
|
|
|
|
capture = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function mouseClicked(){
|
|
|
|
function mouseClicked(){
|
|
|
|
// console.log('mouseClicked');
|
|
|
|
// console.log('mouseClicked');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -471,13 +473,15 @@ function pong() {
|
|
|
|
textSize(width/17);
|
|
|
|
textSize(width/17);
|
|
|
|
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 );
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|