diff --git a/web/js/basicbullet.js b/web/js/basicbullet.js index 2ddb478..0094b6f 100644 --- a/web/js/basicbullet.js +++ b/web/js/basicbullet.js @@ -1,14 +1,14 @@ class bullet { //Een constructor voert eerst de code uit die er in staat voordat de rest van de class wordt uitgevoerd. - constructor(x, y, angle, speed, radius, color) { + constructor(x, y, radius, speed) { //"This" moet gebruikt worden om de variabelen aan te maken in de class en het zorgt er voor dat de variabelen niet alleen in de constructor gebruikt kunnen worden, //maar ook in de rest van de class this.x = x; this.y = y; - this.angle = angle; - this.speed = speed; this.radius = radius; - this.color = color; + this.speed = speed; + + }