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

Commit

Permalink
fixes .set() to use only 2 arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
endel authored Aug 2, 2020
1 parent add8085 commit 9174025
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 9174025

Please sign in to comment.