changed imported variables
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user