diff --git a/_posts/2023-11-13-CSSE-tri2-oop.md b/_posts/2023-11-13-CSSE-tri2-oop.md index ceef6be..08dedbd 100644 --- a/_posts/2023-11-13-CSSE-tri2-oop.md +++ b/_posts/2023-11-13-CSSE-tri2-oop.md @@ -176,8 +176,9 @@ Platform is a class for platforms that the player can stand on, extending GameOb ```javascript // Create a class for platforms that the player can stand on. class Platform extends GameObject { - constructor(x, y, width, height) { - super(x, y, width, height); + constructor(canvas, config) { + super(canvas, config); + } // Additional platform-specific methods or properties }