-
Notifications
You must be signed in to change notification settings - Fork 0
/
puxadores.js
62 lines (49 loc) · 1.21 KB
/
puxadores.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var x3;
var y3;
var about;
function calculaHandles(){
push();
stroke(255);
translate(centroX,centroY);
line(x3 , y3 , x3 , 0);
line(x3 , y3 , 0 ,y3);
noFill();
ellipse(0,0,x3,y3);
pop();
}
function mouseMoved(){
x3 = map(mouseX, centroX, centroX+100 , 0 , 100);
y3 = map(mouseY, centroY , centroY+100 , 0 , 100);
movendo = true;
}
function mouseDragged(){
if(comecou && !aboutOnScreen && mouseY > 200){
x3 = map(mouseX, centroX, centroX+100 , 0 , 100);
y3 = map(mouseY, centroY , centroY+100 , 0 , 100);
movendo = true;
console.log("ain")
raioX = x3*30;
raioY = y3*30;
}
}
function touchScreen(){
console.log("tela");
if(!aboutOnScreen){
if(!comecou){
console.log("TOUCH")
song.play();
containerInicio.style.display ="none";
btnRestart.style.display ="block";
btnUpdate.style.borderBottom ="none";
comecou = true;
}
else{
console.log("oxenti")
raioX = x3*30;
raioY = y3*30;
primeiro = false;
}
}
}
function inputa(){
}