mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-06-09 23:29:40 +00:00
changed name of draw function to drawWorld, main.js
This commit is contained in:
parent
f6ce750299
commit
09aea21988
|
@ -113,13 +113,13 @@
|
|||
ctx.fill();
|
||||
}
|
||||
|
||||
var draw = function(world) {
|
||||
var drawWorld = function(world) {
|
||||
ctx.clearRect(0, 0, width, height);
|
||||
world.robots.forEach(drawRobot);
|
||||
}
|
||||
|
||||
return {
|
||||
draw: draw
|
||||
drawWorld: drawWorld
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -158,7 +158,7 @@
|
|||
});
|
||||
loop(worlds, frameDuration, function() {
|
||||
debugAnimationCounter++;
|
||||
canvas.draw(worlds.peek());
|
||||
canvas.drawWorld(worlds.peek());
|
||||
});
|
||||
loop(worlds, 1000, function() {
|
||||
debugSecondsCounter++;
|
||||
|
|
Loading…
Reference in New Issue
Block a user