Created
December 26, 2019 22:59
-
-
Save kahilkubilay/f9e1e4197f25a1b7adbbdd36272594ad to your computer and use it in GitHub Desktop.
Javascript İle Oyun Yapımı: Nesnelerin Kontrolü - Top
This file contains 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
// ball elementi üzerinde işlemler | |
var ball = document.getElementById('ball'); | |
ball.style.top = window.innerHeight/2 + 'px'; | |
ball.style.left = (window.innerWidth/2) + (16/2) + 'px'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment