Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #231 from endel/patch-1
Browse files Browse the repository at this point in the history
fixes .set() to use only 2 arguments
  • Loading branch information
fernandojsg authored Aug 2, 2020
2 parents add8085 + 9174025 commit d7f9f11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/examples/canvas/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
.addComponent(Movement);

var circle = entity.getMutableComponent(Circle);
circle.position.set(random(0, canvas.width), random(0, canvas.height), 0);
circle.position.set(random(0, canvas.width), random(0, canvas.height));
circle.radius = random(20, 100);

var movement = entity.getMutableComponent(Movement);
movement.velocity.set(random(-20, 20), random(-20, 20), 0);
movement.velocity.set(random(-20, 20), random(-20, 20));
}

window.world = world;
Expand All @@ -82,4 +82,4 @@
</script>
<canvas></canvas>
</body>
</html>
</html>

0 comments on commit d7f9f11

Please sign in to comment.