Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCBKM authored Dec 23, 2018
1 parent 875e96c commit cb832d0
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion L1.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L1.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L2.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L2.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L2.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ slides.forEach(slide => {
}
else{
var xx=map(gamma,-30,30,0,windowWidth);
slide.move(mouseX,slide.y);
slide.move(getMX(),slide.y);
}

i++;
Expand Down
2 changes: 1 addition & 1 deletion L3.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L3.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L4.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L4.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L5.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L5.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L5.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ slides.forEach(slide => {
else{

if( slide.y==97*h){
xx=map(mouseX,100*w,0,0,w*100)
xx=map(getMX(),100*w,0,0,w*100)
// slide.move(xxx,slide.y);
slide.move(xx,slide.y);
}
Expand Down
2 changes: 1 addition & 1 deletion L6.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L6.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion L7.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="L7.js"></script>
</body>
</html>
Binary file added Pong_IT.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</head>
<body>
<script src="mainFunc.js"></script>
<script src="pingpong1.js"></script>
<script src="pingpong.js"></script>
<script src="index.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function draw(){
noLoop();
}
function mousePressed(){

var d=dist(l1.x,l1.y,mouseX,mouseY);
if(d<l1.r)
window.location.href='L1.html';
Expand Down
4 changes: 2 additions & 2 deletions mainFunc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ window.addEventListener('deviceorientation', function(e)
gamma = e.gamma;
});
function getMX(){
return mouseX;
//return map(gamma,-30,30,0,windowWidth);
// return mouseX;
return map(gamma,-30,30,0,windowWidth);
}
function getMY(){
return mouseY;
Expand Down

0 comments on commit cb832d0

Please sign in to comment.