Remove obstacles from constructor
This commit is contained in:
parent
9ef76536ca
commit
b444f5010c
|
@ -46,7 +46,7 @@ class Boid
|
|||
|
||||
class Boids
|
||||
{
|
||||
constructor(canvas, obstacles, params = {})
|
||||
constructor(canvas, params = {})
|
||||
{
|
||||
this.canvas = canvas;
|
||||
this.ctx = canvas.getContext('2d');
|
||||
|
@ -81,7 +81,7 @@ class Boids
|
|||
this.boids = [];
|
||||
|
||||
// List of obstacles
|
||||
this.obstacles = obstacles;
|
||||
this.obstacles = [];
|
||||
|
||||
// Vector registers used for holding temporary values
|
||||
this.registers = [
|
||||
|
|
Loading…
Reference in New Issue