Created
December 27, 2019 11:10
-
-
Save kahilkubilay/5a5c59f103694b5cac5d157ac3ba6ccb to your computer and use it in GitHub Desktop.
Javascript İle Oyun Yapımı: Skor Tablosu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gameChain(){ | |
ball.style.top = window.innerHeight/2 + 'px'; | |
ball.style.left = (window.innerWidth/2) - (16/2) + 'px'; | |
var rnd = Math.random()*4+2; | |
if(Math.random()*1 > 0.5){ | |
rnd *= -1; | |
} | |
ballLeft = rnd; | |
ballTop = rnd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment