Last active
June 6, 2017 02:02
-
-
Save snggeng/168f25ba63596f0cb18a17b9259a73e3 to your computer and use it in GitHub Desktop.
create function
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
// Create the object asset | |
function create() { | |
// in-line styling is important because we will be using the element's | |
// in-line styling to manipulate it's movement, as above in the move() | |
// function | |
playerElement = document.getElementById('player'); | |
playerElement.style.top = '400px'; | |
playerElement.style.left = '400px'; | |
playerElement.style.height = '100px'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment