Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dev

  • Loading branch information...
commit dd95e667a51cddc13c562bb8f898ab987b9ca147 1 parent ff9ad0d
@egonelbre authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/main.js
View
5 js/main.js
@@ -38,7 +38,7 @@ main = {
requestRender();
},
update : function(){
-
+ this.net.cpu.update();
},
render : function(ctx){
ctx.fillStyle = "#fff";
@@ -60,7 +60,7 @@ main = {
// SETUP AUTO UPDATE
setInterval(function(){
- main.net.cpu.update();
+ main.update();
}, 40);
canvas.width = main.size.x;
@@ -69,7 +69,6 @@ canvas.height = main.size.y;
// SETUP RENDERING
function render(){
- main.update();
main.render(ctx);
last = 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.