Last active
December 24, 2015 18:49
-
-
Save hex13/6845854 to your computer and use it in GitHub Desktop.
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
function gameLoop() { | |
ctx.clearRect(0,0,canvas.width, canvas.height); | |
entities.forEach(function (entity) { | |
entity.move(); | |
}); | |
entities.forEach(function (entity) { | |
entity.draw(ctx); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment