Skip to content

Instantly share code, notes, and snippets.

@hex13
Last active December 24, 2015 18:49
Show Gist options
  • Save hex13/6845854 to your computer and use it in GitHub Desktop.
Save hex13/6845854 to your computer and use it in GitHub Desktop.
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