Skip to content

Instantly share code, notes, and snippets.

@kahilkubilay
Created December 27, 2019 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahilkubilay/5a5c59f103694b5cac5d157ac3ba6ccb to your computer and use it in GitHub Desktop.
Save kahilkubilay/5a5c59f103694b5cac5d157ac3ba6ccb to your computer and use it in GitHub Desktop.
Javascript İle Oyun Yapımı: Skor Tablosu
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