Skip to content

Instantly share code, notes, and snippets.

@kahilkubilay
Created December 26, 2019 22:50
Show Gist options
  • Save kahilkubilay/f0dad203363db53fa0faa60bd73e6c93 to your computer and use it in GitHub Desktop.
Save kahilkubilay/f0dad203363db53fa0faa60bd73e6c93 to your computer and use it in GitHub Desktop.
Javascript İle Oyun Yapımı: Nesnelerin Kontrolü - Çubuk
// stick değişkenleri
var stickLeft = document.getElementById('stickLeft');
var stickRight = document.getElementById('stickRight');
stickLeft.style.top = window.innerHeight/2 + 'px';
stickRight.style.top = window.innerHeight/2 + 'px';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment